如何在 ant 中将 perl 和 ruby​​ 脚本作为任务运行? [英] How can I run perl and ruby scripts as tasks in ant?

查看:25
本文介绍了如何在 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 的 exec 任务来运行任意程序,例如 ruby​​ 和 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>

这篇关于如何在 ant 中将 perl 和 ruby​​ 脚本作为任务运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆