DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19432>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19432 subant -- unhelpful error message Summary: subant -- unhelpful error message Product: Ant Version: 1.6Alpha (nightly) Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] In trying the subant task I made what in hindsight was a very silly error, I missed out the target= attribute so the target in the build.xml file was: <target name="clean"> <subant antfile="build.xml" inheritall="false" buildpathref="subdirectoryList"/> </target> In the following run the subdirectoryList reference was to a dirset with just one entry, uk.org.russel.ads, which directory has a build.xml file with a clean target. However the error message is: |> ant clean Buildfile: build.xml clean: BUILD FAILED java.lang.NullPointerException at org.apache.tools.ant.taskdefs.SubAnt.createAntTask(SubAnt.java:339) at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:151) at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:127) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:231) at org.apache.tools.ant.Task.perform(Task.java:399) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1404) at org.apache.tools.ant.Project.executeTargets(Project.java:1278) at org.apache.tools.ant.Main.runBuild(Main.java:611) at org.apache.tools.ant.Main.start(Main.java:198) at org.apache.tools.ant.Main.main(Main.java:245) Total time: 4 seconds java.lang.NullPointerException at org.apache.tools.ant.taskdefs.SubAnt.createAntTask(SubAnt.java:339) at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:151) at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:127) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:231) at org.apache.tools.ant.Task.perform(Task.java:399) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1404) at org.apache.tools.ant.Project.executeTargets(Project.java:1278) at org.apache.tools.ant.Main.runBuild(Main.java:611) at org.apache.tools.ant.Main.start(Main.java:198) at org.apache.tools.ant.Main.main(Main.java:245) 1007 elon.russel.org.uk:~/Books/DJS3e/SourceCode |> which isn't the most helpful of error message I have ever come across. Putting the target="clean" attribute in the subant task line causes correct behaviour so there is no fault of functionality. I should note that this is the 1.6alpha nightly build that I downloaded 2003.04.26.22.58