I can't see a lot of difference between the <ant> and <antcall> tags. It looks like they provide very similar functionality. Regardless, my take from reading the docs of the <ant> tags leads me to believe that it does not pass anything back.
Here is a code snip that will create and write the property file and value(s). <mkdir dir="${baseTarget}" /> <touch file="${baseTarget}/label.properties" /> <propertyfile file="${baseTarget}/label.properties" comment="${BLD_LABEL}"> <entry key="BLD_LABEL" value="${BLD_LABEL}" /> </propertyfile> Here is the code that would read the properties back out. <property file="${baseTarget}/label.properties"/> The value of ${baseTarget} is set before using <antcall> to call target. - Dave -----Original Message----- From: Ralph Jocham [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 14, 2003 16:53 To: Ant Users List Subject: RE: passing of properties from a child ant task to its parent > If you are using <antcall> the answer is no. > > Targets executed via <antcall> have their own > environment > and property space and anything modified or set is > NOT > passed backed or returned to the "calling" target. I use: <ant antfile="build.xml" target="test.run"/> > I have seen <propertyfile> used to write out the > updated > values of properties and then when execution is > returned > to the calling target it opens the property file and > reads > the updated and new values. > Can you point me to these examples. Thanks, Ralph > - Dave > > -----Original Message----- > From: Ralph Jocham [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 14, 2003 16:21 > To: [EMAIL PROTECTED] > Subject: passing of properties from a child ant task > to its parent > > > Hi, > I have 2 differnt build files -- one is a general > one > (build.xml) and the other is used by CruiseControl > (ci-buld.xml). The ci-build.xml mainly uses the > build.xml file with <ant> calls. This works fine but > now I have the following situation. The targets to > run > junit tests are in build.xml. They are set to create > a > propery (junit.failure, junit.error) if a failure or > error occurs. This happens in the bounds of the > build.xml. When I test with <fail if="junit.error" > message="error"/> in the ci-build.xml it is not set, > though an error has happened. My question is, are > created properties from the child ant task being > passed back to the parent task??? > > Thanks, > Ralph > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up > now. > http://mailplus.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>