ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanS <stanley_...@ml.com>
Subject suppress exception in xml logger output
Date Tue, 07 Aug 2007 16:19:28 GMT

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


Mime
View raw message