通过调用shell脚本设置ant属性? [英] Set ant property by invoking a shell script?
本文介绍了通过调用shell脚本设置ant属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法通过捕获 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-property,像这样:
It seems that exec task has an outputproperty-property, like so:
<exec executable="bar" outputproperty="foo" />
这篇关于通过调用shell脚本设置ant属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文