Re: Lost newbie : cannot get new task to work

2001-12-05 Thread Stefan Bodewig

On Wed, 05 Dec 2001, Franck Routier [EMAIL PROTECTED] wrote:

 taskdef name=Xmlc classname=org.enhydra.barracuda.taskdefs.Xmlc
  classpath=lib/ant-barracuda.jar/

 +Task: taskdef
 Class org.enhydra.barracuda.taskdefs.Xmlc loaded from parent loader

the key here is from parent loader - that is the class is on your
system classpath.

 Xmlc due to java.lang.NoClassDefFoundError

It seems to find the task class itself, but fails to load some other
classes that this task depends upon.

Don't put anything into ANT_HOME/lib and try with an empty CLASSPATH
so that you can be sure that org.enhydra.barracuda.taskdefs.Xmlc will
be loaded from the jar file you are pointing taskdef to.

Stefan

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




Re: Lost newbie : cannot get new task to work

2001-12-05 Thread Franck Routier

Thanks Stefan,

well,

in fact Xmlc task depends on two jars :

xmlc.jar (the compiler itself)
log4j.jar (for logging)

If I don't put those jars in ANT_HOME/lib, how do I tell my xmlc task where 
to find it ?

Another point is I noticed that after every + Target, there is one or 
several +Task.
But I only have
+Target: compile_xmlc
and no +Task after...


Franck Routier


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