Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Javadoc Ant task complains package does not exist

843810Oct 27 2005 — edited Dec 18 2008
Hi everybody,

I am using the Javadoc task in Ant 1.6.1. All worked well until I modified the project /lib directory so that certain jars are versioned by JVM, as follows:
/lib/jvm1.4/utility-1.4.jar
The source code builds and executes fine with my changes, but now javadoc complains that the packages in this jar don't exist:
  [javadoc] Constructing Javadoc information...
  [javadoc] C:\Mydata\DataServerClient\src\dataserver\client\DataServerBatchRetrievalUtil.java:67: package utility.java does not exist
  [javadoc] import utility.java.DateHelper;
  [javadoc]                     ^
  [javadoc] C:\Mydata\DataServerClient\src\dataserver\client\DataServerBatchRetrievalUtil.java:68: package utility.java does not exist
  [javadoc] import utility.java.StringUtil;
  [javadoc]                     ^
  [javadoc] C:\Mydata\DataServerClient\src\dataserver\client\DataServerBlockedCachedQueryThread.java:74: package utility.xml does not exist
  [javadoc] import utility.xml.SAXParserPool
Unfortunately for our publication target the javadocs fails, so this is ugly. Is there something obvious that I am doing wrong?

My classpath definition in build.xml is listed below, and this picks up the JVM versioned library:
    <path id="classpath">
      <fileset id="libFiles" dir="lib">
        <include name="**/**/*.jar"/>
        <exclude name="ant.jar"/>
        <exclude name="ant-launcher.jar"/>
        <exclude name="ant-nodeps.jar"/>
       </fileset>
    </path>
And here is where we use the javadoc task:
  <target name="javadocs" depends="init" description="Build the javadocs for the source code.">
    <property name="doc.javadocs" value="doc/javadocs"/>
    <javadoc destdir="${doc.javadocs}" 
             packagenames="dataserver.client"
             sourcepath="${src.dir}"
             Author="true" version="true" Use="true" noindex="true"
             Windowtitle="DataServerClient API "
             Doctitle="DataServerClient API"
             bottom="Copyright � 2005 UCLA Medical Imaging Informatics. All rights reserved.">
      <arg line="-private" />
      <fileset dir="${src.dir}">
        <include name="**/*.java"/>
      </fileset>
    </javadoc>
  </target>
Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2009
Added on Oct 27 2005
3 comments
3,668 views