Use the -lib option when running ant. For example...

ant -lib /path/to/jars target

See the documentation for more details. 
http://ant.apache.org/manual/running.html#options


-Rob Anderson

-----Original Message-----
From: Bourzeix, Hervé [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 12, 2007 10:54 AM
To: Ant Users List; user@ant.apache.org
Subject: rexec

question regarding rexec task , how I can build dymically the classpath used by 
this task ? it required commons-net-xx.jar 

I want to avoid to put the dependency jars in the ant lib. I tried to redefine 
the task and use a user defined classpath but it seems the task is still using 
the main ant classloader instead of the taskdef classpath I indicate to search 
for commons-net.

regards,



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

Reply via email to