我如何运行Perl和Ruby脚本作为Ant任务? [英] How can I run perl and ruby scripts as tasks in ant?
本文介绍了我如何运行Perl和Ruby脚本作为Ant任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望能够从build.xml文件蚂蚁运行Ruby和Perl脚本。
I would like to be able to run ruby and perl scripts from build.xml in ant.
推荐答案
您可以随时使用ant`s的 EXEC 任务运行任意程序,如红宝石和Perl。例如从文档:
You can always use the ant`s exec task to run arbitrary programs, such as ruby and perl. For example and from the docs:
<target name="help">
<exec executable="cmd">
<arg value="/c"/>
<arg value="ant.bat"/>
<arg value="-p"/>
</exec>
</target>
这篇关于我如何运行Perl和Ruby脚本作为Ant任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文