Adam,
as far as I can tell, you'll need to add ant-optional.jar to your classpath
(from whatever Ant release you are using). Either try to obtain this JAR file
from a
local Ant installation, or download castor-0.9.6-src.zip, as it includes the
required file.
Regards
Werner
On Wed, 8 Dec 2004 13:21:33 -0500, Adam VanderHook wrote:
>
>I have downloaded castor-0.9.6-RC2-xml.jar to
>/usr/local/jdk1.4.2/jre/lib/ext (so it is available to all apps without
>having to set classpath voodoo) but I am having problems getting the Ant
>task to work. Going off of the example on the Castor Wiki in
>Undocumented Castor features, I came up with the following target:
>
><target name="regen-firewall">
> <taskdef name="castor-srcgen"
> classname="org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask"/>
>
> <castor-srcgen file="${src}/xml/firewall.xsd"
> todir="${src}" package="net.bj.pfpro.firewall"
> warnings="false"/>
></target>
>
>The only main difference is I am not using the "classpathref" attribute
>of the target element. I am not using this because I do not have
>castor.class.path defined, which is what is used in the example, and I
>am not sure how/what it should be set to, or if I really even need it.
>
>Now, when running Ant, I get the following build error, so I'm sure I'm
>going to need to force a classpath somewhere, but I would like to avoid
>it. Any ideas?
>
>Buildfile: /usr/home/acidos/workspace/pfpro/build.xml
>clean-firewall:
>regen-firewall:
>BUILD FAILED: /usr/home/acidos/workspace/pfpro/build.xml:143: taskdef A class
>needed by class
org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask cannot be found:
org/apache/tools/ant/taskdefs/MatchingTask
>Total time: 831 milliseconds
>
>Adam
>
>--
>"Life does not cease to be funny when people die any more than it ceases to
>be serious when people laugh." -- George Bernard Shaw
>
>Adam VanderHook
>[EMAIL PROTECTED]
>http://acidos.bandwidth-junkies.net/
>
>
>
>-----------------------------------------------------------
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
> unsubscribe castor-user
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user