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
On 01/19/2011 04:03 PM, "Miroslav ©ulc (fordfrog)" wrote:
> hi, > > i was looking at the issues when some classes cannot be found via > DEPENDS, like the problem > is that DEPENDS for ant tasks does not contain dependency on ant-core. > this patch below could fix it (at least it fixed the issue for me and > testing some junit ant tasks while emerging packages with > FEATURES="test" worked too):
This could work for ant-tasks themselves, but not for everything else that has ant-core dependency, such as when a package provides some ant task. In that case, the depending classes are needed only when invoked from within ant, in which case they are already on classpath. Registering as dependency would make ant put on classpath in all cases the package is used. The bottom line is, there should be a way to exclude stuff (such as ant classes) in java-dep-check. BTW, the mailing list is better than the java alias for this. Seems to get much less spam as I see it :) Vlastimil
> $ cvs diff ant-tasks.eclass > Index: ant-tasks.eclass > =================================================================== > RCS file: /var/cvsroot/gentoo-x86/eclass/ant-tasks.eclass,v > retrieving revision 1.8 > diff -r1.8 ant-tasks.eclass > 174a176 >> java-pkg_register-dependency ant-core ant.jar > > any objections against committing this? > > miroslav


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