[fedora-java] ant contrib rpm not working?

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


> > So do I really have to manage my CLASSPATH manually?
> 
> When using rpm installed software No.
> Can you try whether 
> http://koji.fedoraproject.org/koji/getfile?taskID=1654610&name=ant-
> contrib-1.0-0.9.b2.fc12.noarch.rpm fixed the problem?

No, it does not. But I also noticed the following (strace excerpt):

[pid  4000] open("/usr/share/java/ant/ant-trax-1.7.1.jar",
O_RDONLY|O_LARGEFILE) = 49 [pid  4000]
open("/usr/share/java/xalan-j2-serializer-2.7.0.jar",
O_RDONLY|O_LARGEFILE) = 50 [pid  4000]
open("/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/lib/tools.jar",
O_RDONLY|O_LARGEFILE) = 51 Buildfile:
incrementalParser/src/build/ant/testcases.xml [pid  4000]
open("/usr/share/ant/lib/ant-contrib.jar", O_RDONLY|O_LARGEFILE) = 52
[pid  4000]
open("/home/choeger/dev/diplom/mf/incremental_page/incrementalParser/src/build/ant/testcases.xml",
O_RDONLY|O_LARGEFILE) = 53   [taskdef] Could not load definitions from
resource net/sf/antcontrib/antlib.xml. It could not be found.

As you can see /usr/share/java/ant/ant-trax-1.7.1.jar is loaded
automagically _before_ the build file is examined. This is what I
assumed to be automagic classpathing.
On the other hand you see that ant-contrib.jar is opened when it's put
into /usr/share/ant/lib - but that does not help.

Any ideas?
-------------- 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/6e7593fd/attachment.bin 


More information about the java-devel mailing list