ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Yates" <lyat...@adelphia.net>
Subject javadoc not creating -package parameter
Date Wed, 07 Mar 2001 23:17:48 GMT
In my build.xml file, I've tried entering packagenames in three ways:
1. By using a comma separated list
   packagenames="com.*, com.foo.*,com.util.*"

2. By using a property name of a comma separated list
   <property name=packages value="com.*, com.foo.*,com.util.*" />
   packagenames="${packages}"

3. Just trying one entry
   packagenames="com.util.*"

In ALL cases, Ant does not pass the packagenames parameter.
Here is the verbose log file (which is identical in all 3 cases):

Ant version 1.2 compiled on October 24 2000

Buildfile: testapi_build.xml
Detected Java Version: 1.1
Detected OS: NONSTOP_KERNEL
Project base dir set to: /test/applications/demo
Build sequence for target `test' is [test]
Complete build sequence is [test]
  [javadoc] Generating Javadoc
  [javadoc] Source path = /test/applications/demo/version6
  [javadoc] Packages = [com.ltvcopperweld.*, com.ltvcopperweld.structural.*,
com.trcinc.*]
  [javadoc] Javadoc args: javadoc -package -private -classpath
/test/applications/demo/version6:.:/usr/tandem/java/lib/classes.zip:/usr/tan
dem/java/lib/servletclasses.zip:/usr/tandem/java/lib/tandemvm.jar:/usr/tande
m/java/lib/tsmp.jar:/test/applications/demo/version5/servletclasses:/usr/xal
an/xerces.jar:/usr/xalan/xalan.jar:/home/lyates/rmi/Insight.jar:/test/applic
ations/demo/jakarta-ant/lib/ant.jar:/test/applications/demo/jakarta-ant/lib/
jaxp.jar:/test/applications/demo/jakarta-ant/lib/parser.jar -version -author
 -d /test/applications/demo/version6/javadoc
  [javadoc] Javadoc execution
  [javadoc] javadoc: No package or classes specified.
  [javadoc] usage: javadoc flags* [class | package]*
  [javadoc] 	-sourcepath <path>  Colon-separated list of source-file
directories
  [javadoc] 	-classpath <path>   Synonym for -sourcepath
  [javadoc] 	-d <directory>      Destination directory for output files
  [javadoc] 	-version            Include @version paragraphs
  [javadoc] 	-nodeprecated       Exclude @deprecated paragraphs
  [javadoc] 	-author             Include @author paragraphs
  [javadoc] 	-noindex            Do not generate method and field index
  [javadoc] 	-notree             Do not generate class hierarchy
  [javadoc] 	-public             show only public classes and members
  [javadoc] 	-protected          show protected/public classes and members
(default)
  [javadoc] 	-package            show package/protected/public classes and
members
  [javadoc] 	-private            show all classes and members
  [javadoc] 	-J<flag>            Pass <flag> directly to the runtime system
  [javadoc] 	-encoding <name>    Source file encoding name
  [javadoc] 	-docencoding <name> Output encoding name
  [javadoc]

BUILD SUCCESSFUL

Total time: 28 seconds

NOTE THE -package PARAMETER IS BLANK!

Here is one incarnation (try #3) of the build.xml file:

<project name="My Project" default="test" basedir=".">
   <property name="app.name" value="version6"/>
   <property name="deploy.home"
value="/test/applications/demo/${app.name}"/>
   <property name="packages"
value="com.ltvcopperweld.,com.ltvcopperweld.structural.,com.trcinc."/>

<target name="test">
  <javadoc sourcepath="${deploy.home}"
           destdir="${deploy.home}/javadoc"
           packagenames="com.ltvcopperweld.structural.*"
           author="true"
           version="true"
           package="true"
           private="true"
  />
</target>
</project>

What's up?

Thanks!
-Larry


Mime
View raw message