2016-08-08 29 views
0

有没有在其中通过以下命令?:Phing:这是由“phing -l”上市集团目标

phing -l

列出的build.xml文件分离目标的可能性因为目前我看到“主要目标”标题下的所有目标。我想有几个小组。像“数据库”,“PHP”等。这可能吗?我还没有发现文档和Google以及Stackoverflow的搜索功能。

感谢您的关注。

回答

0

现在是不可能的。为此目的,Target没有属性。

我将解释我的解决方法:

我有一个文件夹斌/目标(避免使用斌/ phing如果您使用的作曲家来处理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" /> 

当你执行斌/ phing -l目标不是在分开的组,但命名空间和名字:)

分类