Ant task doesn't support relative jar path with '..'
Brought to you by:
grzegok
In case of using ant with the following configuration:
<target name="create.exe" >
<launch4j>
<config dontWrapJar="true"
jar="..\lib\javadc3.jar"
...
ant task produces error:
Specify runtime path of the jar relative to the executable.
This occures because of the following:
See class net.sf.launch4j.ant.Launch4jTask.
Method fixRelativeJarPath
Line: 102:
if(jarPath.startsWith(basePath))
This condition return false in case of using '..' in
jarPath.
I suppose it is better to set Jar file parameter type
to String and make path relative in case of
'dontWrapJar="false"'
Logged In: YES
user_id=917657
fixed it already