ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ylan Segal" <y...@digiworks.com.mx>
Subject Possible bug in ant1.5beta1 - javadoc task
Date Fri, 03 May 2002 14:59:47 GMT
I am trying out ant1.5Beta1 (downloaded yesterday).
There seems to be a problem running a javadoc target that causes a
NullPointerException.
This behavior does not occur with ant1.4.1 and it did not occur a few weeks
ago when I built ant myself from cvs (I don't do it now, though).

For the record, the javadoc task is not running with the default doclet. If
I run it with the default doclet, all is well, however the doclet I am using
does work with ant 1.4.1.

Here are the specifics:

My build.xml snip:
............
<target name="doccheck" depends="prepare">
	<javadoc
		packagenames="${packages}"
		sourcepath="${src.home}"
                destdir="${doccheck.home}"
		docletpathref="project.classpath"
		doclet="com.sun.tools.doclets.doccheck.DocCheck"
		excludepackagenames="**.testing"
		defaultexcludes="yes"
		>
		<classpath refid="project.classpath"/>
	</javadoc>
</target>
............

BUILD OUTPUT:
D:\Projects\Master>ant -version
Apache Ant version 1.5Beta1 compiled on April 30 2002
D:\Projects\Master>ant doccheck
Buildfile: build.xml

check:
     [echo] Build started: 03/mayo/2002 08:55 AM Central Standard Time
     [echo] Java Version: 1.3

help:

prepare:

doccheck:
  [javadoc] Generating Javadoc

BUILD FAILED
java.lang.NullPointerException
        at
org.apache.tools.ant.types.Reference.getReferencedObject(Reference.ja
va:91)
        at
org.apache.tools.ant.types.Path.dieOnCircularReference(Path.java:464)

        at
org.apache.tools.ant.types.Path.dieOnCircularReference(Path.java:472)

        at org.apache.tools.ant.types.Path.list(Path.java:287)
        at org.apache.tools.ant.types.Path.addExisting(Path.java:260)
        at
org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:551)
        at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1520)
        at org.apache.tools.ant.Task.perform(Task.java:313)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
        at org.apache.tools.ant.Main.runBuild(Main.java:605)
        at org.apache.tools.ant.Main.start(Main.java:195)
        at org.apache.tools.ant.Main.main(Main.java:234)

Total time: 1 second
java.lang.NullPointerException
        at
org.apache.tools.ant.types.Reference.getReferencedObject(Reference.ja
va:91)
        at
org.apache.tools.ant.types.Path.dieOnCircularReference(Path.java:464)

        at
org.apache.tools.ant.types.Path.dieOnCircularReference(Path.java:472)

        at org.apache.tools.ant.types.Path.list(Path.java:287)
        at org.apache.tools.ant.types.Path.addExisting(Path.java:260)
        at
org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:551)
        at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1520)
        at org.apache.tools.ant.Task.perform(Task.java:313)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
        at org.apache.tools.ant.Main.runBuild(Main.java:605)
        at org.apache.tools.ant.Main.start(Main.java:195)
        at org.apache.tools.ant.Main.main(Main.java:234)

If any one has any ideas as to why this is happening, please let me know.

Ylan Segal.



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message