ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinar Bicioglu" <pinarb...@hotmail.com>
Subject RE: simple javadoc question
Date Wed, 30 May 2001 16:38:19 GMT

With both Larry's and your help I got one step forward. Thank you both a 
lot...

I changed my code as below

<target name="javadoc" depends="compile">
    <javadoc sourcepath="d:/ap20/java/org/apache/struts/form" 
sourcefiles="${struts-compile-list}"
            destdir="${javadoc.home}"
          />
</target>

  <property name="struts-compile-list" 
value="java/org/apache/struts/form/ProcessFormAction.java ,
   java/org/apache/struts/form/ValidateForm.java" />

The files are being generated with 13 warnings...I pasted them below

D:\ap20>ant javadoc
Buildfile: build.xml

prepare:

compile:

javadoc:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source file 
java\org\apache\struts\form\ProcessFormAction.java...
  [javadoc] Loading source file 
java\org\apache\struts\form\ValidateForm.java...
  [javadoc] Constructing Javadoc information...
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:21: Class 
org.apache.struts
.action.Action not found in import.
  [javadoc] import org.apache.struts.action.Action;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:22: Class 
org.apache.struts
.action.ActionError not found in import.
  [javadoc] import org.apache.struts.action.ActionError;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:23: Class 
org.apache.struts
.action.ActionErrors not found in import.
  [javadoc] import org.apache.struts.action.ActionErrors;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:24: Class 
org.apache.struts
.action.ActionForm not found in import.
  [javadoc] import org.apache.struts.action.ActionForm;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:25: Class 
org.apache.struts
.action.ActionForward not found in import.
  [javadoc] import org.apache.struts.action.ActionForward;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:26: Class 
org.apache.struts
.action.ActionMapping not found in import.
  [javadoc] import org.apache.struts.action.ActionMapping;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:27: Class 
org.apache.struts
.action.ActionServlet not found in import.
  [javadoc] import org.apache.struts.action.ActionServlet;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:28: Class 
org.apache.struts
.util.MessageResources not found in import.
  [javadoc] import org.apache.struts.util.MessageResources;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:29: Class 
org.apache.struts
.util.PropertyUtils not found in import.
  [javadoc] import org.apache.struts.util.PropertyUtils;
  [javadoc]        ^
  [javadoc] java\org\apache\struts\form\ProcessFormAction.java:31: 
Superclass org.apache.s
truts.action.Action of class org.apache.struts.form.ProcessFormAction not 
found.
  [javadoc] public final class ProcessFormAction extends Action {
  [javadoc] javadoc: warning - Import not found: 
org.apache.struts.action.Action - ignorin
g!
   [javadoc] javadoc: warning - Import not found: 
org.apache.struts.action.ActionError - i
gnoring!
[javadoc]                                              ^
  [javadoc] javadoc: warning - Import not found: 
org.apache.struts.action.ActionErrors - i
gnoring!
  [javadoc] javadoc: warning - Import not found: 
org.apache.struts.action.ActionForm - ign
oring!
  [javadoc] javadoc: warning - Import not found: 
org.apache.struts.action.ActionForward -
ignoring!
  [javadoc] javadoc: warning - Import not found: 
org.apache.struts.action.ActionMapping -
ignoring!
  [javadoc] javadoc: warning - Import not found: 
org.apache.struts.action.ActionServlet -
ignoring!
  [javadoc] javadoc: warning - Import not found: 
org.apache.struts.util.MessageResources -
ignoring!
  [javadoc] javadoc: warning - Import not found: 
org.apache.struts.util.PropertyUtils - ig
noring!
  [javadoc] javadoc: warning - Cannot find class 
org.apache.struts.action.ActionMapping
  [javadoc] javadoc: warning - Cannot find class 
org.apache.struts.action.ActionForm
  [javadoc] javadoc: warning - Cannot find class 
org.apache.struts.action.ActionForward
  [javadoc] javadoc: warning - Cannot find class 
org.apache.struts.action.ActionErrors
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
  [javadoc] Generating 
D:\Tomcat\jakarta-tomcat-3.2.1\webapps\struts\javadoc\stylesheet.cs
s...
  [javadoc] 13 warnings

BUILD SUCCESSFUL

Total time: 9 seconds

I tried a few different combinations to identify the source files but none 
of them seemed to work...

Thanks again

>From: Bill.J.Fellows@mail.sprint.com
>Reply-To: ant-user@jakarta.apache.org
>To: ant-user@jakarta.apache.org
>Subject: RE: simpel javadoc question
>Date: Wed, 30 May 2001 10:59:48 -0500
>
>>From the documentation...
>
>sourcefiles  | Comma separated list of source files  | all |
>packagenames | Comma separated list of package files (with terminating
>wildcard) | all |
>
>at least one of these two (above) are required
>
>So, if you don't use packages, you get to enumerate all your files (at
>least, that's how I read it)
>
>Now that I read the packagenames though, perhaps something like
>packagenames="*" might work.  I'll try that but otherwise,
>sourcefiles="myFirst.java, mySecond.java, adNauseam.java"
>
>-----Original Message-----
>From: pinarbici [mailto:pinarbici@hotmail.com]
>Sent: Wednesday, May 30, 2001 10:30 AM
>To: ant-user
>Cc: pinarbici
>Subject: simpel javadoc question
>
>
>Hi All,
>I have the javadoc target below in mu build.xml file. Since my project
>was
>pretty simple I didn't use any java packages in it. Therefore I didn't
>include the "packagenames" attribute in javadoc task.
>And I am getting 1 error message when i run "ant javadoc" in the
>command
>line
>Any ideas why it happens ?
>Thanks in advance
>
>code:
>
><target name="javadoc" depends="compile">
>     <javadoc sourcepath="d:/ap20/java/org/apache/struts/form"
>             destdir="${javadoc.home}"
>           />
></target>
>
>javadoc:
>   [javadoc] Generating Javadoc
>   [javadoc] Javadoc execution
>   [javadoc] javadoc: No packages or classes specified.
>                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


Mime
View raw message