Orangevolt ANT Tasks
Complete HotKey Code ReferenceReferences

3.  Dynamic commandline(s)

Version 1.2 of Orangevolt Ant Tasks extends the commandine parameters of jstub and sfx task. You can add placeholders for enviroment and registry settings to the commandline which are evaluated and replaced at runtime.

When do i need this feature ?

Suppose your application setup installs a private java runtime and the path to it is stored in the windows registry. Your application does not know about the location of the private java runtime.
By using the registry/enviroment features of sfx and jstub you are able to retrieve registry/enviroment informations at executable runtime.
The following example commandline will query the registry and replace the ant tokens by the queries value:

class com.orangevolt.sourcestyle.xalan.Extension : error : mode bat is unknown.

The commandline(s) patched into executables created with jstub and sfx are parsed for ant styled variable placeholders containing

Syntax

Placeholders in general are defined using the following syntax:

${type:name(|default)*}

The registry feature is only available for win32 executables created with sfx/jstub.