ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pinar Bicioglu" <pinarb...@hotmail.com>
Subject RE: javadoc ....
Date Fri, 01 Jun 2001 21:28:54 GMT



>From: Bill.J.Fellows@mail.sprint.com
>Reply-To: ant-user@jakarta.apache.org
>To: ant-user@jakarta.apache.org
>Subject: RE: javadoc ....
>Date: Fri, 1 Jun 2001 16:13:13 -0500
>
>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.

I am sorry but i don't understand what you mean by saying struts level. Is 
it where my project is ??

>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

So my root will be set to org.apache.struts.form right ?

>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.

Do I do that form start/settings/controlpanel/systems....??
>
>    <!-- 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>
>
I don;t get the classpath part. if i am just wasting your time please let me 
know you don't have to help me this much
I greatly appreciate your help though :)

>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

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


Mime
View raw message