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.