Dominique thanks very much for the reply. This is working great so far!
This is the syntax of my command now...
<java classname="org.apache.tools.ant.launch.Launcher"
classpath="${env.ANT_HOME}/lib/ant-launcher.jar"
fork="true"
failonerror="true"
outputproperty="exec-result">
<arg line="-f ./../../../Client/Build/build-flash.xml" />
<arg line="-logger org.apache.tools.ant.XmlLogger" />
<arg line="-verbose" />
<arg line="-logfile c:\cygwin\home\roberts\${logfile}" />
</java>
Hopefully that will help others with a similar problem. Thanks again
for the reply Dominique.
-----Original Message-----
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 10:04 AM
To: Ant Users List
Subject: Re: Ant error reporting issue when using XML log output through
exec call
> <exec dir="." executable="${env.ANT_HOME}\bin\ant.bat"
> ...
> Unfortunately when I run the task which encompasses this exec task it
> always returns success.
.bat files are unreliable. You should <java fork="true">, running
Ant's launcher class, who is the class that interprets the Ant
arguments and starts the whole thing. Then you'll get proper error
codes. Examples can be found in the archives.
--DD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]