是否可以分隔build.xml文件中由以下命令列出的目标:
phing -l
因为目前我在“主要目标”标题下看到了所有的目标。我想要几个小组。像“数据库”,"PHP“等等,这是可能的吗?通过文档和Google,当然还有Stackoverflow的搜索功能,我还没有找到任何类似的东西。
感谢您的关注。
发布于 2016-09-17 17:09:44
现在还不可能。Target没有用于此目的的属性。
我将向您解释我的解决方法:
我有一个文件夹bin/target(如果你使用composer来处理phing依赖关系,请避免使用bin/phing ),里面有几个xml文件:
bin/targets/
├── db
│ ├── default.xml
│ └── one_database.xml
├── geonames.xml
├── jmeter.xml
├── qcode.xml
├── skel.xml
├── symfony.xml
└── test.xml每一个都有几个目标,并且所有的目标都以“命名空间”为前缀。例如,名为db.one_database.deploy的目标位于此文件./bin/targets/db/one_database.xml,中
在我的build.xml文件的末尾,我有以下说明
<import file="bin/targets/skel.xml" optional="false" />
<import file="vendor/corretgecom/phing-base64/bin/phing/qgpl/corretgecom.qgpl.base64.xml" optional="false" />
<import file="bin/targets/symfony.xml" optional="false" />
<import file="bin/targets/test.xml" optional="false" />
<import file="bin/targets/qcode.xml" optional="false" />
<import file="bin/targets/jmeter.xml" optional="false" />
<import file="bin/targets/db/default.xml" optional="false" />
<import file="bin/targets/db/one_database.xml" optional="false" />执行bin/phing时,-l目标不在单独的组中,而是命名空间并按名称排序:)
https://stackoverflow.com/questions/38829461
复制相似问题