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 3958] New: - NPE in Depend task
Date Thu, 04 Oct 2001 04:13:28 GMT
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=3958>.
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=3958

NPE in Depend task

           Summary: NPE in Depend task
           Product: Ant
           Version: 1.5 alpha (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: mdub@bigfoot.com


The Depend sometimes throws a NPE.  Bug exists in 1.4, 1.4.1b1 and current CVS.

Deleting the dependencies.txt file typically solves the problem. 

    <target name="web:compile"
            depends="web:libs">
        <depend srcdir="web/java"
                destdir="build/web/app/WEB-INF/classes"
                cache="build/web/depcache">
            <classpath refid="web:compile.classpath" />
        </depend>
        ...

$ ant -version
Ant version 1.4.1b1 compiled on October 4 2001

$ ant -v web:compile
/home/mikew/Work/melb/projects/CorShop/build.xml:400: 
java.lang.NullPointerException
        at 
org.apache.tools.ant.taskdefs.optional.depend.Depend.execute(Depend.java:534)
        at org.apache.tools.ant.Task.perform(Unknown Source)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
java.lang.NullPointerException
        at 
org.apache.tools.ant.taskdefs.optional.depend.Depend.execute(Depend.java:516)
        at org.apache.tools.ant.Task.perform(Unknown Source)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Mime
View raw message