Gentoo Archives: gentoo-java

From: Vlastimil Babka <caster@g.o>
To: "Miroslav Šulc (fordfrog)" <fordfrog@g.o>
Cc: gentoo-java <gentoo-java@l.g.o>
Subject: [gentoo-java] Re: java-dep-check on ant tasks
Date: Mon, 31 Jan 2011 01:15:02
Message-Id: 4D460CEF.8010508@gentoo.org
1 On 01/19/2011 04:03 PM, "Miroslav ©ulc (fordfrog)" wrote:
2 > hi,
3 >
4 > i was looking at the issues when some classes cannot be found via
5 > DEPENDS, like http://bugs.gentoo.org/show_bug.cgi?id=298689. the problem
6 > is that DEPENDS for ant tasks does not contain dependency on ant-core.
7 > this patch below could fix it (at least it fixed the issue for me and
8 > testing some junit ant tasks while emerging packages with
9 > FEATURES="test" worked too):
10
11 This could work for ant-tasks themselves, but not for everything else
12 that has ant-core dependency, such as when a package provides some ant
13 task. In that case, the depending classes are needed only when invoked
14 from within ant, in which case they are already on classpath.
15 Registering as dependency would make ant put on classpath in all cases
16 the package is used.
17 The bottom line is, there should be a way to exclude stuff (such as ant
18 classes) in java-dep-check.
19
20 BTW, the mailing list is better than the java alias for this. Seems to
21 get much less spam as I see it :)
22
23 Vlastimil
24
25 > $ cvs diff ant-tasks.eclass
26 > Index: ant-tasks.eclass
27 > ===================================================================
28 > RCS file: /var/cvsroot/gentoo-x86/eclass/ant-tasks.eclass,v
29 > retrieving revision 1.8
30 > diff -r1.8 ant-tasks.eclass
31 > 174a176
32 >> java-pkg_register-dependency ant-core ant.jar
33 >
34 > any objections against committing this?
35 >
36 > miroslav

Replies

Subject Author
Re: [gentoo-java] Re: java-dep-check on ant tasks "Miroslav Šulc (fordfrog)" <fordfrog@g.o>