ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Segal" <Robert.Se...@cryptologic.com>
Subject RE: Ant error reporting issue when using XML log output through exec call
Date Thu, 14 Dec 2006 19:30:31 GMT
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:ddevienne@gmail.com] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


______________________________________________________________________
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message