[fedora-java] ant contrib rpm not working?

Christoph Höger choeger at cs.tu-berlin.de
Fri Sep 4 11:38:01 UTC 2009


Am Freitag, den 04.09.2009, 14:22 +0300 schrieb Alexander Kurtakov:
> > Hi all,
> >
> > after installing ant-contrib, I cannot use it.
> >
> > I have:
> >
> > <taskdef uri="antlib:net.sf.antcontrib"
> > resource="net/sf/antcontrib/antlib.xml"/>
> >
> > in my build.xml
> >
> > But as a result I do get a resource not found error.
> >
> > How am I supposed to use this thing rpm?
> 
> Do you have /usr/share/java/ant-contrib.jar on your classpath?

That's the point. I always thought, /usr/share/java/* would be on the
default classpath. Is that not the case?

At least strace tells me that lots of jar files there are read. Setting
CLASSPATH=/usr/share/java/\* before invoking ant, does not work but dies
with a strange exception, using
CLASSPATH=/usr/share/java/ant-contrib.jar works, but what is the point
of doing that if I install a rpm file?

Also I noticed that lots of ant rpms put their files
into /usr/share/java/ant/

So do I really have to manage my CLASSPATH manually?

 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/java-devel/attachments/20090904/fa9f88c7/attachment.bin 


More information about the java-devel mailing list