ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill.J.Fell...@mail.sprint.com
Subject RE: javadoc ....
Date Fri, 01 Jun 2001 21:13:13 GMT
Ah...  No.
The error message is correct.  By specifying package name, javadoc 
expects to see something like

package test.jar;
class myClass ....


Since you are still working on javadoc, have you tried something like 
this?

Include your classpath and start your package names at the struts 
level.  
The following works for me by setting root to com.sprint.bwg.bil.jil 
and then javadocs pulls all the stuff for all packages one level below 
root == ${root}.model ${root}.view ... ${root}.controller 

I also explicitly build my classpath before and then pass it.  If I 
were you, I'd make sure I had classpath something like
%CLASSPATH%;%STRUTS_HOME%\lib\struts.jar;d:\ap20\java\org\apache\struts\
form
where %STRUTS_HOME% is where you installed struts.

   <!-- Javadoc target -->
   <target name="javadocs" depends="prepare-javadoc" >

   <property name="root"  value="org.apache.struts" />
   <property name="src"   value="d:\ap20\java" />

      <javadoc sourcepath="${src}" 
        destdir="${javadoc.home}"  
        classpath="${needed.jars}" 
        packagenames="${root}.*" 
        author="true"
        version="true"
        use="true"
        windowtitle="${app.name} ${version} API"
        doctitle="${app.name}" >

      </javadoc>

   </target>


Where does that get you?
/bill

-----Original Message-----
From: pinarbici [mailto:pinarbici@hotmail.com]
Sent: Friday, June 01, 2001 3:49 PM
To: ant-user
Cc: pinarbici
Subject: javadoc ....



Thanks a lot for your responses. I can;t tell how incredibley happy 
I'll be 
after I am done with this javadoc stuff :)

here is what i have so far.

<target name="packages" >
     <jar jarfile="d:\ap20\java\test.jar"
          basedir="d:\ap20\java\org\apache\struts\form"
          includes="**/*.class"/>
</target>

<!-- Generate the javadoc -->
  <target name="javadoc" depends="packages, compile">
    <javadoc sourcepath="d:\ap20\java" packagenames="test.jar"
       destdir="${javadoc.home}"
       author="true"
       version="true"
       use="true"
       windowtitle="${app.name} ${version} API"
       doctitle="${app.name}"
       />
</target>

and the error message it generates is;

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

packages:

prepare:

compile:

javadoc:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] javadoc: No package, class, or source file found named 
test.jar.
  [javadoc] 1 error

BUILD SUCCESSFUL

Total time: 5 seconds

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message