ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Ant error reporting issue when using XML log output through exec call
Date Thu, 14 Dec 2006 15:04:15 GMT
> <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


Mime
View raw message