2013-05-01 127 views
0

如何更改qooxdoo項目名稱,例如從「projectNameA」到「projectNameB」?qooxdoo:如何更改項目名稱?

generate.py,以下命令可用。

>>> Available jobs: 
    - api   -- create api doc for the current library 
    - api-data  -- create api doc json data files 
    - build  -- create build version of current application 
    - clean  -- remove local cache and generated .js files (source/build) 
    - distclean -- remove the cache and all generated artefacts of this library 
(source, build, ...) 
    - fix   -- normalize whitespace in .js files of the current library (tabs, eol, ...) 
    - info   -- collects environment information like the qooxdoo version etc., and prints it out 
    - inspector -- create an inspector instance in the current library 
    - lint   -- check the source code of the .js files of the current library 
    - migration -- migrate the .js files of the current library to the current 
qooxdoo version 
    - pretty  -- pretty-formatting of the source code of the current library 
    - profiling -- includer job, to activate profiling 
    - simulation-build  -- create a runner app for simulated interaction tests 
    - simulation-run  -- launches simulated interaction tests generated with 
simulation-build 
    - source  -- create source version of current application 
    - source-all -- create source version of current application, with all class 
es 
    - source-hybrid  -- create a hybrid application (application classes as 
individual files, others catenated) 
    - test   -- create a test runner app for unit tests of the current library 
    - test-source   -- create a test runner app for unit tests (source version) of the current library 
    - translation   -- create .po files for current library 

但是沒有重命名項目命令。是否有可用於更改項目名稱的命令?

+1

有關於重命名的[open bug](http://bugzilla.qooxdoo.org/show_bug.cgi?id=7035)。它描述了你必須執行的步驟 - 手動現在:/ ... – 2013-05-02 09:30:42

回答

0

要更改項目名稱,例如從「projectNameA」到「projectNameB」,你只需要找到&替換項目文件夾中的所有文件(記得要重命名所有子文件夾),併發出以下命令:

的Linux/Mac的

./generate.py clean 
./generate.py source-all 

的Windows

generate.py clean 
generate.py source-all 
1

我相信以「項目名稱」你的意思是應用程序的命名空間(以下簡稱「命名空間」,在其manifest.json中的條目)。正如理查德在他的評論中已經提到的,有幾個步驟可以執行,請參閱鏈接bug。這些操作分爲兩類,重命名文件和目錄,以及更改代碼中的名稱引用。要更改的項目文件是Manifest.json和config.json。必須對source樹進行進一步的修改,特別是在source/classsource/resource之下。這些路徑下的目錄反映了應用程序名稱空間並且必須進行更改,但是隻要改變Manifest.json提供的許多子目錄作爲名稱空間即可。之後,您必須更改source/class樹中的源文件,查找舊名稱空間的外觀(全局搜索和替換* .js文件可能會讓您足夠靠近)。