我怎样才能得到当前目标蚂蚁的价值? [英] How can I get the value of the current target ant?

查看:152
本文介绍了我怎样才能得到当前目标蚂蚁的价值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能得到当前目标蚂蚁的价值?

How can I get the value of the current target ant?

是否存在一个特殊的变量一些所谓的目标是什么?

Does it exist a special variable something called TARGET?

推荐答案

根据问题需要修补蚂蚁或使用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>

(编辑:缩进$ 4位C $ C座,使其显示为code)

(edit: indented code block by 4 spaces to make it appear as code)

这篇关于我怎样才能得到当前目标蚂蚁的价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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