ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From François <francois.x.h...@gmail.com>
Subject RE: taskdef, class not found
Date Tue, 14 Mar 2006 08:34:45 GMT
Thanks for your answer.

You mean to say that the Batik task is an optional task?  I did look in the
Ant documentation, but it was not listed in the op. tasks list.

I tried the CLASSPATH approach, but it lead to another failure (a
NullPointerException, which, for Java, is another way to say: "I don't know
what caused the failure but I'm reporting it anyway").

I decided not to use the taskdef, but rather the rasterizer jar itself, in a
<java> task.  Worked beautifully.

F.

-----Message d'origine-----
De : Dominique Devienne [mailto:ddevienne@gmail.com] 
Envoyé : 13 mars 2006 21:58
À : Ant Users List
Objet : Re: taskdef, class not found

> <taskdef name="rasterize"
> classname="org.apache.tools.ant.taskdefs.optional.RasterizerTask" />

This is not necessary. It's implicitly done by Ant, for all core and
optional task.

> Now, when I run the task, ant keeps complaining that the 
> RasterizerTask cannot find one of the classes it relies upon (which I 
> have found in another jar file related to the Batik framework).
>
> I know I can add a classpath attribute to the taskdef to specify where 
> to look for the RasterizerTask class.  But, if, I'm not wrong, this 
> classpath will not help ant finding the other classes this class 
> relies upon, hence the error message.

You should have tried, because either that, or putting the Batik
Jar(s) in ant/lib, or putting it/them on the CLASSPATH, or using the -lib
command line argument would all work. How could Ant know about classes you
haven't told the JVM were these are? Good luck, --DD

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


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


Mime
View raw message