ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
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
path-element.

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Dominique Devienne [mailto:ddevienne@gmail.com] 
>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: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message