JExecutable in Ant

 

Using JExecutable as an Ant Task

JExecutable can also be used as an ant task. This permits using it as a tool integrated in a standard ant deployment chain.

Defining the ant task

This is the first step to be able to use JExecutable in your ant scripts. You need to add a taskdef tag that provides to ant the information required to create the JExecutablegen task.

<taskdef name="JExecutablegen"
     classname="com.bestcode.jexecutablegen.ant.JExecutableGen"
     classpath="path/to/JExecutablegen-ant.jar"/>

If your JExecutable project uses the Sun's JIMI library to recognize .ico files, you must add it to the classpath as well.

Using the JExecutablegen task

The task takes two mandatory parameters:

  • project: a reference to the project file.
  • skeletonroot: a reference to a directory where the skeletons can be found. Be careful, this is not the directory where the skeleton used by the project can be found, be rather the directory one level up.
  • Here is a sample, extracted from the JExecutable build.xml file:
  • <JExecutablegen project="jsprj/JExecutablegen.j2exe"  
    skeletonroot="${dist}/skeletons"/>

     

    [Home] [Features] [Create Java Exe] [Command Line] [Ant Task] [JNI Functions] [JExecutable FAQ] [License]

    jexecutable@gurusoft.net