Reputation: 4701
Is it possible to read properties from another ant project ?
I could do it with:
<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" />
While in child/build.xml
:
<target name="echoproperties">
<echoproperties destfile="${echoproperties.file}" />
</target>
But I would like to avoid creating temporary files.
Upvotes: 2
Views: 820
Reputation: 4701
I've found that Ant-Contrib has antfetch task although it's functionality is not that great (no prefix, no propertysets).
Upvotes: 1