You need to make sure that they are loaded by the same classloader;
giving them the same path doesnt guarantee this, and once in separate
classloaders, the tasks cannot cast the reference to the types they expect.

<classpath id="cpptasks.classpath" path="./Tools/Ant/cpptasks.jar" />

<taskdef resource="cpptasks.tasks" classpathref="cpptasks.classpath"  />
<typedef resource="cpptasks.types" classpathref="cpptasks.classpath"  />

Or drop cpptasks.jar in ANT_HOME/lib, and use XML namespaces with the
auto-magic antlib:net.sf.antcontrib.cpptasks URI, which I bind to the
cc prefix. I can then do <cc:compiler>, <cc:linker>, <cc:cc>, etc...
--DD

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

Reply via email to