ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franck Routier <Franck.Rout...@hospvd.ch>
Subject Lost newbie : cannot get new task to work
Date Wed, 05 Dec 2001 12:46:52 GMT
Hi list,

I am trying to integrate the xmlc task into my build.xml file but I keep 
getting an error.
The purpose of the xmlc task is to call the xmlc xml compiler that turns 
xml (or html) files into a full java dom. XMLCTask extends MatchingTask.

1) Here is my build.xml file (relevant parts) :

...
<taskdef name="Xmlc" classname="org.enhydra.barracuda.taskdefs.Xmlc" 
classpath="lib/ant-barracuda.jar"/>
...
<target name="compile_xmlc">
<Xmlc includes="**/*.html" compile="no" srcdir="src/xmlc/" verbose="true"/>
</target>
...

2) Here is what ant - debug gives me (well, only the parts I thought were 
relevant) :

...
+Task: taskdef
Class org.enhydra.barracuda.taskdefs.Xmlc loaded from parent loader
+User task: Xmlc org.enhydra.barracuda.taskdefs.Xmlc
...
+Target: compile_xmlc
...
compile_xmlc:

BUILD FAILED

/Users/franckro/devel/bdc/build.xml:201: Could not create task of type:
Xmlc due to java.lang.NoClassDefFoundError
at org.apache.tools.ant.Project.createTask(Project.java:509)
at
org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:148)
at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:8
3)
at org.apache.tools.ant.Task.perform(Task.java:216)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.tools.ant.Project.createTask(Project.java:486)
at
org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:148)
at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:8
3)
at org.apache.tools.ant.Task.perform(Task.java:216)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 7 seconds


Thanks for any help,

Franck Routier


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message