From cee952f3678168cc0b59f909f04008e7e38949a8 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Wed, 17 Apr 2002 01:36:50 +0000 Subject: [PATCH] document changes to XmlLogger git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272479 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 3 +++ docs/manual/listeners.html | 16 +++++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/WHATSNEW b/WHATSNEW index 228541627..55b3b136b 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -317,6 +317,9 @@ Other changes: * has a new nested element, , which allows you to specify additional args for the specific compiler you're using. + +* org.apache.tools.ant.XmlLogger now is a BuildLogger, rather than just + a BuildListener. It can operate in either mode successfully. Changes from Ant 1.4 to Ant 1.4.1 =========================================== diff --git a/docs/manual/listeners.html b/docs/manual/listeners.html index e65398efb..74bca3f4b 100644 --- a/docs/manual/listeners.html +++ b/docs/manual/listeners.html @@ -80,7 +80,7 @@ listeners and loggers.

org.apache.tools.ant.XmlLogger Writes the build information to an XML file. - BuildListener + BuildLogger

DefaultLogger

@@ -269,10 +269,15 @@ corresponding Log4j level.

XmlLogger

Writes all build information out to an XML file named log.xml, or the value -of the XmlLogger.file property if present. +of the XmlLogger.file property if present, when used as a +listener. When used as a logger, it writes all output to either the +console or to the value of -logfile. Whether used as a listener +or logger, the output is not generated until the build is complete, as it +buffers the information in order to provide timing information for task, +targets, and the project.

-By default the xml file creates -a reference to an xslt file "log.xsl" in the current directory; look in +By default the XML file creates +a reference to an XSLT file "log.xsl" in the current directory; look in ANT_HOME/etc for one of these. You can set the property ant.XmlLogger.stylesheet.uri to provide a uri to a style sheet. this can be a relative or absolute file path, or an http URL. @@ -286,7 +291,8 @@ is declared at all.

-

ant -listener org.apache.tools.ant.XmlLogger

+

ant -listener org.apache.tools.ant.XmlLogger
+ant -logger org.apache.tools.ant.XmlLogger -verbose -logfile build_log.xml