#9 Ant task doesn't support relative jar path with '..'

2.x
closed-fixed
nobody
None
5
2006-05-31
2006-05-30
No

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"'

Discussion

  • Pavel Moukhataev

    • milestone: --> 2.x
     
  • Grzegorz Kowal

    Grzegorz Kowal - 2006-05-31

    Logged In: YES
    user_id=917657

    fixed it already

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2006-05-31
    • status: open --> closed-fixed
     

Log in to post a comment.