尝试通过将 Ant Build.xml 转换为 Phing 来学习 Phing。似乎在 Phing User doc 上找不到搜索功能......
这就是我所拥有的:
<condition property="script-suffix" value=".bat" else="">
<os family="windows" />
</condition>
<echo message="Script-suffix is ${script-suffix}" />
我需要解决两个问题,但我不知道如何解决:
我不知道如何将此条件转换为可接受的 Phing。该
else=""
属性导致错误。我无法
script-suffix
使用${script-suffix}
我试过${project.script-suffix}
, ${phing.script-suffix}
,标记并失败了 T__T。$, and other obvious combination. And attempted to change the condition using the
<if>
, <else>
提前谢谢你^__^。