如何获取当前目标蚂蚁的值? [英] How can I get the value of the current target ant?
本文介绍了如何获取当前目标蚂蚁的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取当前目标蚂蚁的值?
How can I get the value of the current target ant?
它是否存在一个叫做 TARGET 的特殊变量?
Does it exist a special variable something called TARGET?
推荐答案
基于 问题你必须修补ant或使用javascript:
Based on the issue you have to patch ant or used javascript:
<target name="test">
<script language="javascript">
project.setNewProperty("current_target", self.getOwningTarget());
</script>
<echo>${current_target}</echo>
</target>
这篇关于如何获取当前目标蚂蚁的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文