Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
suppress exception in xml logger output

suppress exception in xml logger output

2007-08-07       - By stanS


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@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.