ant-user mailing list archives

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

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

>From: Bill.J.Fellows@mail.sprint.com
>Reply-To: ant-user@jakarta.apache.org
>To: ant-user@jakarta.apache.org
>Subject: RE: javadoc warning: can not find class
>Date: Fri, 1 Jun 2001 15:32:57 -0500
>
>Using Felice's snippet applied to your code as best I've been able to
>tell
>
><target name="test_dist" depends="test_compile">
>
>     <!-- the location you wish to have the jar'd code stored -->
>     <property name="dist" value="d:\ap20\java" />
>
>     <!-- the source of the source ;)  Where the code actually is -->
>     <property name="build" value="d:\ap20\java\org\apache\struts\form"
>/>
>
>     <!-- make a jar file called test.jar in d:\ap20\java
>         that contains all the stuff in
>d:\ap20\java\org\apache\struts\form
>
>     The basedir attribute is the reference directory from where to jar
>     The jarfile attribute is the jar-file to create.
>     -->
>         <jar jarfile="${dist}/struts.jar" basedir="${build}" />
></target>
>
>Note:  this will pull in everything that is in the ${build} directory
>so if you weren't planning on distributing your source code (.java
>files) and any other file sitting out there, you may want to alter the
>jar command to look like this.  Jars
>
><!--
>     make a jar called struts.jar and put it at d:\ap20\java
>     Fill it with all class files starting at
>        d:\ap20\java\org\apache\struts\form and descend the tree
>-->
>
><jar jarfile="${dist}/struts.jar"
>      basedir="${build}"
>     include="**/*.class" />
>
>
>
>Has the original javadoc issue been resolved?

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


Mime
View raw message