0

如何更改 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

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

4

2 回答 2

1

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

于 2013-05-13T14:30:07.463 回答
0

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

Linux / Mac

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

视窗

generate.py clean
generate.py source-all
于 2013-05-01T07:02:27.047 回答