0
這將是美妙的,如果我可以這樣做:能夠訪問螞蟻macrodef中封閉目標的「名稱」嗎?
<macrodef name="process-target">
<attribute name="target" default="?enclosing.target.name?" />
...
</macrodef>
<target name="myTarget>
<process-target/>
</target>
剛剛發現了類似的回答:http://stackoverflow.com/questions/1427745/how-can-i-get-the-value-of-the-current-target-ant – 2013-04-07 20:30:17
呀看起來像你必須轉義螞蟻並使用Javascript - – peterk 2013-04-08 22:01:48