Hi,

is it possible to use a property after a child buildfile is called, which
sets that property?

It seems, that a property which was set in the child build file is not
availabe in the parent.

Example:
build.xml:
<project default="main" name="Platform-Services">
  <property name="junit.results" location="test-results"/>
  <target name="main">
    <echo message="main before: abc=${abc}"/>
    <ant antfile="child-build.xml" target="check" inheritall="true">
    </ant>
    <echo message="main after: abc=${abc}"/>
  </target>
</project>

child-build.xml:
<project default="check" name="Platform-Services">
  <property name="junit.results" location="test-results"/>
  <target name="check">
     <available property="abc" file="build.xml"/>
     <echo message="child: abc=${abc}"/>
  </target>
</project>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to