ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Setting classpath when executing jar file
Date Fri, 07 Jul 2006 14:41:03 GMT
>  <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


Mime
View raw message