ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31598] New: - XmlLogger does not output to logfile
Date Fri, 08 Oct 2004 09:29:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31598>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31598

XmlLogger does not output to logfile

           Summary: XmlLogger does not output to logfile
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: dev@ant.apache.org
        ReportedBy: claude.ostyn@barco.com


Using ANT 1.6.2 (currently with JDK 1.5), I am no longer able to create logfiles
of my builds, using the XmlLogger.

This is the command line that I use:

>ant -logger org.apache.tools.ant.XmlLogger -logfile build_log.xml deploy

The output (to the console) of the ANT build is formatted by the XmlLogger and
looks something like this:

---snip---
Buildfile: build.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="log.xsl"?>

<build error="D:\project\shared\afw\build.xml:35: Compile failed; see the
compiler error output for details." time="11 seconds">
...
</build>
---snap---

The logfile itself (build_log.xml) is not created. 

According to the manual, if no '-logfile' option is specified, the logger will
output to the console, just as I see here. Could this mean that the -logfile is
not recognized?

Even more, when I try to debug (by adding the -debug option), the ANT builder
sees errors in the command line arguments:

>ant -debug -logger org.apache.tools.ant.XmlLogger -logfile deploy
Apache Ant version 1.6.2 compiled on July 16 2004
You must specify a classname when using the -logger argument


Could it be that the logfile arg is ignored?

Note: this worked fine on ANT 1.5 (even with JDK 1.5).

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


Mime
View raw message