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 31840] - NPE using XmlLogger and antlib
Date Fri, 22 Oct 2004 16:58:20 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=31840>.
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=31840

NPE using XmlLogger and antlib





------- Additional Comments From peterreilly@apache.org  2004-10-22 16:58 -------
This is stange. I cannot reproduce the problem
with the build.xml and antlib.xml files given.

I tested with ant1.6.0, ant1.6.1 and ant1.6.2.

The output given was:
ant -f build.xml -logger org.apache.tools.ant.XmlLogger
Buildfile: build.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="log.xsl"?>

<build error="/home/preilly/learning/a/antlib/error/build.xml:5: srcdir
attribute must be set!" time="0 seconds">
        <task location="/home/preilly/learning/a/antlib/error/antlib.xml:2: "
name="" time="0 seconds"></task>
        <task location="/home/preilly/learning/a/antlib/error/build.xml:3: "
name="typedef" time="0 seconds"></task>
        <target name="build" time="0 seconds">
                <task
location="/home/preilly/learning/a/antlib/error/build.xml:5: " name="javac2"
time="0 seconds"></task>
        </target>
        <stacktrace><![CDATA[/home/preilly/learning/a/antlib/error/build.xml:5:
srcdir attribute must be set!
        at org.apache.tools.ant.taskdefs.Javac.checkParameters(Javac.java:893)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:738)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
]]></stacktrace>
</build>

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


Mime
View raw message