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 17:40:47 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 mariano@fuegolabs.com  2004-10-22 17:40 -------
this is the output with a patch to make Antlib.java return "antlib" as taskname

mariano@fenix:/w/MAIN/local/lib/eclipse> ant -f sample.xml -logger
org.apache.tools.ant.XmlLogger
Buildfile: sample.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="log.xsl"?>

<build time="0 seconds" error="/w/MAIN/local/lib/eclipse/sample.xml:5: srcdir
attribute must be set!">
        <task name="antlib" location="/w/MAIN/local/lib/eclipse/antlib.xml:2: "
time="0 seconds"></task>
        <task name="typedef" location="/w/MAIN/local/lib/eclipse/sample.xml:3: "
time="0 seconds"></task>
        <target name="build" time="0 seconds">
                <task name="javac2"
location="/w/MAIN/local/lib/eclipse/sample.xml:5: " time="0 seconds"></task>
        </target>
        <stacktrace><![CDATA[/w/MAIN/local/lib/eclipse/sample.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