qooxdoo:如何更改项目名称?
问题描述:
如何更改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
但是没有重命名项目命令。是否有可用于更改项目名称的命令?
答
要更改项目名称,例如从“projectNameA”到“projectNameB”,你只需要找到&替换项目文件夹中的所有文件(记得要重命名所有子文件夹),并发出以下命令:
的Linux/Mac的
./generate.py clean
./generate.py source-all
的Windows
generate.py clean
generate.py source-all
答
我相信以“项目名称”你的意思是应用程序的命名空间(以下简称“命名空间”,在其manifest.json中的条目)。正如理查德在他的评论中已经提到的,有几个步骤可以执行,请参阅链接bug。这些操作分为两类,重命名文件和目录,以及更改代码中的名称引用。要更改的项目文件是Manifest.json和config.json。必须对source
树进行进一步的修改,特别是在source/class
和source/resource
之下。这些路径下的目录反映了应用程序名称空间并且必须进行更改,但是只要改变Manifest.json提供的许多子目录作为名称空间即可。之后,您必须更改source/class
树中的源文件,查找旧名称空间的外观(全局搜索和替换* .js文件可能会让您足够靠近)。
有关于重命名的[open bug](http://bugzilla.qooxdoo.org/show_bug.cgi?id=7035)。它描述了你必须执行的步骤 - 手动现在:/ ... – 2013-05-02 09:30:42