http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1046
*** shadow/1046 Tue Mar 20 07:23:48 2001
--- shadow/1046.tmp.11257 Tue Mar 20 07:23:48 2001
***************
*** 0 ****
--- 1,101 ----
+ +============================================================================+
+ | Javadoc won't work right. |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1046 Product: Ant |
+ | Status: NEW Version: 1.3 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: Windows NT/2K |
+ | Priority: Component: Optional Tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: [EMAIL PROTECTED] |
+ | Reported By: [EMAIL PROTECTED] |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Hello,
+
+ I tried to use the Javadoc capability of Ant, but it doesn't work. The
program
+ recognizes that I want a Javadoc with a specified package, but it keeps
saying
+ that it can't write one without a specified package. Here is the verbose
+ output:
+
+ [javadoc] Generating Javadoc
+ [javadoc] Source path = D:\refactory\junit\src
+ [javadoc] Packages = [junit.*]
+ [javadoc] Exclude Packages = []
+ [javadoc] Javadoc args: javadoc -d D:\refactory\junit\docs -classpath
c:\jdk1.
+
2.2\lib\tools.jar;d:\jakarta\ant\lib\parser.jar;d:\jakarta\ant\lib\jaxp.jar;d:\j
+ akarta\ant\lib\ant.jar -sourcepath D:\refactory\junit\src -version -author
+ [javadoc] Javadoc execution
+ [javadoc] javadoc: No packages or classes specified.
+
+ Here is a copy of the build.xml file:
+
+ <project name="junit" default="all" basedir=".">
+
+ <!-- TARGET init sets up variables -->
+ <target name="init">
+
+ <!-- Non-platform sensitive properties -->
+ <!-- Change this for each project -->
+ <property name="projName" value="Junit" />
+
+ <property name="javaHome" value="c:/jdk1.2.2" />
+
+ <property name="libHome" value="d:/jakarta/tomcat/lib" />
+ <property name="sourceDir" value="src" />
+
+ <property name="classpath"
+ value="${libHome}/servlet.jar;${libHome}/webserver.jar;${libHome}/jakarta-ant-
+ 1.3-optional.jar" />
+ <echo message="libHome is: ${libHome}"/>
+ <echo message="classpath is: ${classpath}"/>
+ </target>
+
+
+ <!-- TARGET classes builds all java classes from .java files -->
+ <target name="classes" depends="init">
+ <mkdir dir="${basedir}/classes" />
+ <javac srcdir="${basedir}/${sourceDir}"
+ destdir="${basedir}/classes"
+ classpath="${classpath}"
+ debug="on"
+ deprecation="off"
+ optimize="on"
+ includes="**/*.java" />
+ </target>
+
+
+ <!-- TARGET jars builds jars -->
+ <target name="jars" depends="classes">
+ <jar jarfile="${basedir}/${projName}.jar"
+ basedir="${basedir}/classes"
+ includes="**/*.class" />
+ </target>
+
+
+ <!-- TARGET docs builds javadocs -->
+ <!-- maxmemory="64000000" ??? -->
+ <target name="docs" depends="init">
+ <mkdir dir="${basedir}/docs" />
+ <javadoc sourcepath="${basedir}/${sourceDir}"
+ destdir="${basedir}/docs"
+ packagenames="junit.*"
+ private="false"
+ version="true"
+ author="true" />
+ </target>
+ <!-- TARGET all builds all classes incl. rmi -->
+ <target name="all" depends="classes,jars,docs" />
+
+
+ </project>
+
+
+ What am I doing wrong?!
+
+ Sincerely,
+
+ Russ Baker