Deliver Your Java Application in One-JAR™!

Copyright 2004-2010 by P. Simon Tuffs, All Rights Reserved. http://www.simontuffs.com




Ant Taskdef

This path downloads the minimal environment needed to work with One-JAR using Ant. An advantage to this path is that the source-code for the Ant <one-jar> taskdef is provided for education purposes.
  1. Download one-jar-ant-task-0.97.jar
  2. Unpack into a working directory (e.g. c:/one-jar-ant):

    $ mkdir c:/one-jar-ant
    $ cd c:/one-jar-ant
    $ jar -xvf .../one-jar-ant-task-0.97.jar
  3. Add the following to your build.xml script:

    <property name="one-jar.dist.dir" value="c:/one-jar-ant"/>
    <import file="${one-jar.dist.dir}/one-jar-ant-task.xml" optional="true" />
    <one-jar destfile="your.one.jar"
    ...etc.

If you like One-JAR then you might want to check out some of the other Open-Source projects developed by simontuffs.com:
Get One-JAR(TM) at SourceForge.net. Fast, secure and Free Open Source software downloads soap-stone at sourceforge.net Eclipse JAR Plugin Yet Another Compiler Compiler Language