Marcin Wisnicki
Marcin Wisnicki

Reputation: 4701

get property from different ant project

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

Answers (1)

Marcin Wisnicki
Marcin Wisnicki

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

Related Questions