Hello Dave,

if you look at the documentation for <taskdef/> you can see that it is possible to define tasks with a certain class path.

<taskdef name="p4label" classname="org.apache.tools.ant.taskdefs.optional.perforce.P4Label">
<classpath>
<pathelement location="path of jakarta-oro.jar"/>
<pathelement location="path of ant-apache-oro.jar"/>
</classpath>
</taskdef>


Hopes this helps,

Antoine

Dave Bartmess wrote:

Is there a way to dynamically add to the classpath within ant, for say a
Perforce task? I need to add a specific version of a jar file depending
on the project I am compiling. When I call p4label, it says "The ant
script calls other ant scripts to create these projects, and the jar
file is different for some of them, therefore, I can't use a batch
script to set the classpath and call ant.

This is used in an automated setting, and in the developers' IDE's (of
various flavors).

Any ideas?

Thanks!





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



Reply via email to