qooxdoo:如何更改项目名称?

时间:2013-05-01 07:02:27

标签: qooxdoo

如何更改qooxdoo项目名称,例如从“projectNameA”到“projectNameB”?

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

但是没有重命名项目命令。是否有可用于更改项目名称的命令?

2 个答案:

答案 0 :(得分:1)

我假设“项目名称”是指应用程序的命名空间(Manifest.json中的“命名空间”条目)。正如理查德在评论中已经提到的那样,要执行几个步骤,请参阅链接的bug。这些操作分为两类,重命名文件和目录,以及更改代码中的名称引用。要更改的项目文件是Manifest.json和config.json。必须对source树进行进一步修改,尤其是在source/classsource/resource下方。这些路径下的目录反映了应用程序命名空间,必须进行更改,但请注意,只更改Manifest.json作为命名空间提供的许多子目录。之后,您必须更改source/class树中的源文件,查找旧命名空间的外观(* .js文件上的全局搜索和替换可能会让您足够接近)。

答案 1 :(得分:0)

要更改项目名称,例如从“projectNameA”到“projectNameB”,你只需要找到&替换项目文件夹中的所有文件(记得重命名所有子文件夹)并发出命令:

Linux / Mac

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

<强>窗

generate.py clean
generate.py source-all