;-) ... just a minute before I read this mail I committed a change that Ant 
would log a 
message here.... and a post on the dev-list that the task converts the 'jar' to 
an additional
path-element.

Jan 

>-----Ursprüngliche Nachricht-----
>Von: Dominique Devienne [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 7. Juli 2006 16:41
>An: Ant Users List
>Betreff: Re: Setting classpath when executing jar file
>
>>  <target name="run" depends="set-props">
>>    <java fork="true" jar="${dist.dir}/${jar.name}"
>> classpathref="libraries">
>>        <arg value="${action}"/>
>>    </java>
>>  </target>
>
>The problem is in fact that <java jar=""> always ignores any 
>classpath specified, because SUN's java does when using the 
>-jar command line switch. See the JDK Tools documentation (or 
>my answer to the 'unusual'
>post of the 4th of July...)
>
>Use <java classname=""> to be able to specify a classpath. --DD
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to