NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Ant question, Was: Another app with switchable display side projections

Stuart Maclean wrote:

Hey, do you know of a good way in Ant to say "heres some class files, and here's some source paths, now go and bundle all the sources which produced the class files into a single jar? Armed with that task, I could post the sources to my gridviewer on the web page.

Stuart - you can bundle whatever you want into a jar with the Ant jar command. For example, below is a small build.xml I call from a parent build file with
<subant tartget="jar">

You can see I bundle class files together with image files. If you want only source files, just use the appropriate wildcard (i.e., *.java) with the "includes"
directive.

<project name="image_looper_rco" default="jar">
 <target name="jar">
   <jar destfile="${rcolib.home}/image_looper_rco.jar">
     <fileset dir="${rcosrc.home}" includes="rco/image_looper/*.class"/>
     <fileset dir="${rcosrc.home}/rco/image_looper" includes="images/**"/>
     <fileset dir="${basedir}/lib" includes="net/n3/nanoxml/**"/>
<fileset dir="${rcosrc.home}" includes="rco/util/JAnimatedImage.class"/> <fileset dir="${rcosrc.home}" includes="rco/util/ServletInvoker.class"/>
   </jar>
 </target>
</project>

--
Tommy Jasmin
Space Science and Engineering Center
University of Wisconsin, Madison
1225 West Dayton Street, Madison, WI 53706

  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvusers archives: