You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Anand Krishniyer <ak...@savvion.com> on 2003/03/19 19:59:01 UTC

Ant1.52 javadoc problem

Hi
I recently upgraded to ant1.52 from ant1.41 and all the javadoc scripts
stopped working. This is a sample of a javadoc task i am using.


 <property name="src.dir" value="../src"/>
  <javadoc sourcepath="${src.dir}"
               destdir="${ghiAPI.dir}"
               public="true"
               version="true"
               windowtitle="ghiAPI"
               doctitle="ghi API Reference Guide"
               nodeprecated="true"
               notree="true"
               classpath="${additional.class}"
               packagenames="com.abc.def.ghi.file1,
                                        com.abc.def.ghi.file2,
                                        com.abc.def.ghi.file3
                                    ">

      </javadoc>
This task worked perfectly fine with Ant1.42. now I get the following
errors

 [javadoc] /home/akrishni/sbm_latest/sbm/src doesn't contain any
packages, dropp
ing it.

BUILD FAILED
file:/home/akrishni/sbm_latest/sbm/buildscripts/buildBIJavadoc.xml:57:
No source
files and no packages have been specified.
        at
org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1534)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        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:1339)

        at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

I am using java1.3.1_02. I would like to fix this without much change as
there are several javadoc buildscripts which needs to be changed.
Has anyone faced similar problems with Ant1.52.
Thanks in advance.

Anand