Currently, the format of the parameters for the ant task differs from the saved XML file. Therefore, just copying and pasting the contents of the XML into <launch4j> does not work. Is it possible to support that syntax as alternative?
Would be great to have all the config file options in ant as well...
You don't have to copy it, you can simply point to where the config file is and optionally override some of the parameters:
<launch4j configFile="./l4j/demo.xml" />
You can set or override the following configuration properties...
jar="absolute path or relative to basedir"
bindir="alternate bin directory..."
tmpdir="alternate working directory..."