You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by stanS <st...@ml.com> on 2007/08/07 18:19:28 UTC

suppress exception in xml logger output

When I run the ant command line with xmllogger specified, and when the build
has some kind of trivial build errors, like [javac] fails out of compilation
error, the end of the xml output contains the stack trace.

<stacktrace><![CDATA
at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
             :

I wonder why it looks different than I run ant without xmllogger, where Ant
just simply says "BUILD FAILED." and output the displayable message of the
BuildException, not dumping the stack trace. 
The stack trace makes sense only if I ask for -debug.
Is it something I am missing and how can I suppress it?

Thanks
Stan
-- 
View this message in context: http://www.nabble.com/suppress-exception-in-xml-logger-output-tf4231163.html#a12037503
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org