2

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.

4

1 に答える 1

1

Ant-Contrib にはantfetchタスクがあることがわかりましたが、機能はそれほど優れていません (接頭辞もプロパティセットもありません)。

于 2013-08-16T10:35:08.673 に答える