试图通过将Ant Build.xml转换为Phing来学习Phing。似乎无法找到Phing用户文档搜索功能....Phing:访问<condition>中的值属性标记
这是我有:
<condition property="script-suffix" value=".bat" else="">
<os family="windows" />
</condition>
<echo message="Script-suffix is ${script-suffix}" />
有我需要解决两个问题,但我不知道如何:
我不知道如何将这种 条件转化为Phing可以接受的。
else=""
属性是 导致错误。${script-suffix}
我试过${project.script-suffix}
,${phing.script-suffix}
,$, and other obvious combination. And attempted to change the condition using the
标签和壮观失败T__T我无法通过访问 <if>
,<其他>script-suffix
财产 。
预先感谢您^ __ ^。
我也从蚂蚁工作生成文件转换为Phing和你的第一个建议完美工作,谢谢 – Carlton 2014-01-13 12:39:10