通过调用一个shell脚本设置蚂蚁的财产? [英] Set ant property by invoking a shell script?

查看:238
本文介绍了通过调用一个shell脚本设置蚂蚁的财产?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过捕获shellscript里的输出设置一个蚂蚁的财产? (或其他Ant任务)

Is there any way to set an ant property by capturing the output of a shellscript? (or another ant task)

事情是这样的:

<property name="foo">
    <value>
        <exec executable="bar" />
    </value>
</property>

谢谢!

推荐答案

看来EXEC任务有outputproperty属性,像这样:

It seems that exec task has an outputproperty-property, like so:

<exec executable="bar" outputproperty="foo" />

这篇关于通过调用一个shell脚本设置蚂蚁的财产?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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