是否可以从另一个 ant 项目中读取属性?
我可以这样做:
<ant antfile="child/build.xml" target="echoproperties">
<property name="echoproperties.file" value="${tmp}/child.properties" />
</ant>
<property prefix="child" file="${tmp}/child.properties" />
<delete file="${tmp}/child.properties" />
在child/build.xml
:
<target name="echoproperties">
<echoproperties destfile="${echoproperties.file}" />
</target>
但我想避免创建临时文件。