This works perfect for the <java> and the <junit> tasks.
however i still could not find out how I should do the same for the excution
of an custom ant task.
everything is perfect for the <taskdef> but when I want to actually exceute
my own task the classpath defined in the <taskdef> is not used.
ralf
On 7/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>It seems like i'm not getting the classpath setting correctly
>hence there is an error in executing my jar file..
> <!-- setting a reference -->
> <path id="libraries">
> <fileset dir="${lib.dir}">
> <include name="*.jar"/>
> </fileset>
> </path>
>
> <target name="run" depends="set-props">
> <java fork="true" jar="${dist.dir}/${jar.name}"
>classpathref="libraries">
> <arg value="${action}"/>
> </java>
> </target>
>
>When trying to execute the jar file, the classes in other jars
>is not found.
>How to correctly set the classpathref?
http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html#ext-libs
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ralf Sigmund
Hospitalstr. 85
22767 Hamburg