脚本宝典收集整理的这篇文章主要介绍了php – 检查Phing中是否存在目录并提示继续?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
例如:
<PRoject name="test" default="help" basedir="./"> <target name="clean" description="Deletes directory"> <available file="/testy" tyPE="dir" property="dir.Exists" /> <if> <isset property="dir.Exists"/> <then> <echo>Yep</echo> </then> </if> </target> <phingcall target="clean" /> </project>
Error reading project file [wrapped: \build.XMl:22:18: Error inITializing nested element <echo> [wrapped: phing.tasks.system.IfTask doesn't support the 'echo' creator/adder.]]
PS.该错误与“嵌套元素回声”无关,据我所知,因为如果我删除它仍然发送相同的错误,实际上我认为这是一个默认语法相关的错误消息或其他东西.
<target name="clean"> <delete dir="${project.basedir}/${source.directory}" quiet='true' /> </target>
以下在我的系统中工作正常:
<target name='test'> <if> <available file='results' type='dir' /> <then> <echo>Yep</echo> </then> </if> </target>
所以我在想你使用AvailableTask的方式是不正确的.
以上是脚本宝典为你收集整理的php – 检查Phing中是否存在目录并提示继续?全部内容,希望文章能够帮你解决php – 检查Phing中是否存在目录并提示继续?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。