ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Setting classpath when executing jar file
Date Fri, 07 Jul 2006 14:49:30 GMT
;-) ... 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


>-----Urspr√ľngliche Nachricht-----
>Von: Dominique Devienne [] 
>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}/${}"
>> 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: For 
>additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message