ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Earl Hood <earlh...@gmail.com>
Subject javadoc custom doclet regression bug in 1.9.3? (was: [ANN] Apache Ant 1.9.3 Released)
Date Thu, 02 Jan 2014 20:08:08 GMT
On Sat, Dec 28, 2013 at 11:47 PM, Antoine Levy Lambert wrote:

> The Apache Ant Team is proud to announce the 1.9.3 release of Ant.
  [snip]

I think I may have encountered a regression bug.

When trying to use a custom doclet (DocFlex/Doclet v1.6.1), I get an NPE
at the very end of the generation.  The doclet appears to have done its
job, but Ant throws an NPE at the very end.  I get no NPE in Ant 1.8.4
or Ant 1.9.2.

It will take me a little time to create a self-contained, reproducable
case, but I figure I should give a "heads-up" here in case someone on
the development team may have an immediate idea of the cause.

The following is the XML fragment from the project scripts that invokes
the javadoc target.  Following the fragment is the stack trace printed
by Ant:

<target name="build-javadoc-single"
        unless="javadoc.uptodate"
        depends="javadoc-uptodate-check,build-prepare,build-classes">
  <mkdir dir="${project.build.doc}/html/javadoc-single"/>
  <javadoc classpathref="project.class.path"
           packagenames="${project.javadoc.packagenames}"
       >
    <doclet name="com.docflex.javadoc.Doclet"
            path="${project.deps}/docflex-doclet/lib/docflex-doclet.jar">
      <param name="-format" value="HTML"/>
      <param name="-docflexconfig"
             value="${project.deps}/docflex-doclet/lib/docflex.config"/>
      <param name="-config"
             value="${project.deps}/docflex-doclet/config/local.config"/>
      <param name="-d" value="${project.build.doc}/html/javadoc-single"/>
      <param name="-f" value="java-api-single.html"/>
    </doclet>
    <arg value="-launchviewer=false"/>
    <arg value="-nodialog=true"/>
    <sourcepath>
      <dirset dir="${project.root.src}">
        <include name="java-priv" if="project.javadoc.buildPriv"/>
        <include name="java"/>
      </dirset>
    </sourcepath>
    <link href="${javadoc.javase.uri}"
          offline="true"
          packagelistLoc="${project.root.etc}/jdk"/>
    <link href="${contrib.lucene.javadoc.uri}"
          offline="true"
          packagelistLoc="${project.root.etc}/lucene"/>
  </javadoc>
</target>


The error generated by Ant 1.9.3:

BUILD FAILED
java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.Javadoc.postProcessGeneratedJavadocs(Javadoc.java:2450)
        at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1790)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.Main.runBuild(Main.java:851)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

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


Mime
View raw message