ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: javadoc warning: can not find class
Date Fri, 01 Jun 2001 20:32:57 GMT
Using Felice's snippet applied to your code as best I've been able to 

<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 

    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}" />

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" 
    include="**/*.class" />

Has the original javadoc issue been resolved?

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