【发布时间】:2015-08-15 18:04:25
【问题描述】:
是否可以让 ant 帮助使用目标描述中的属性值?仅使用 ${} 符号似乎不起作用
构建文件:
<property name="test.report.dir" value="report"/>
...
<target name="test" depends="compile.main, compile.test" description="Runs unit tests. Reports are saved in ${test.report.dir}/">
...
终端:
ant -p
Buildfile: /home/aaron/Projects/DataStore/build.xml
Main targets:
...
test Runs unit tests. Reports are saved in ${test.report.dir}/
...
这是 Echo target description in Ant 中建议的解决方案,但正如评论者指出的那样,它不会扩展属性。
我在 Ubuntu 上使用 ant 1.9.3。
【问题讨论】:
标签: ant