Integrating exe4j with your ant script (read about ant at
http://ant.apache.org)
is easy. Just use the exe4j task
that is provided in {exe4j installation directory}/bin/ant.jar
and set the projectfile parameter to the exe4j config
file that you want to build.
To make the exe4j task available to ant, you
must first insert a taskdef element that tells
ant where to find the task definition. Here is an example of using the
task in an ant build file:
<taskdef name="exe4j"
classname="com.exe4j.Exe4JTask"
classpath="C:\Program Files\exe4j\bin\ant.jar"/>
<target name="launcher">
<exe4j projectfile="myapp.exe4j"/>
</target>
The taskdef definition must occur only once per
ant-build file and can appear anywhere on the top level below the
project element.
Note: it is not possible to copy the ant.jar archive to
the lib folder of your ant distribution. You have to reference a full
installation of exe4j in the task definition.
|