Re: Re: java-dep-check on ant tasks
Alistair Bush <[email protected]> Mon, 31 Jan 2011 17:21:04 +1300
| Newsgroups | gmane.linux.gentoo.java |
|---|---|
| Organization | Gentoo Linux |
| Message-ID | <[email protected]> |
> Dne 31.1.2011 02:14, Vlastimil Babka napsal(a): > > On 01/19/2011 04:03 PM, "Miroslav =C5=A0ulc (fordfrog)" wrote: > >> hi, > >>=20 > >> i was looking at the issues when some classes cannot be found via > >> DEPENDS, like http://bugs.gentoo.org/show_bug.cgi?id=3D298689. the pro= blem > >> 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 > >=20 > >> FEATURES=3D"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. >=20 > well, imo there is a question when to exclude and when not, talking > generally, not just about ant classes. >=20 I actually thought that functionality had been implemented a long time ago,= =20 but obviously my memory is failing me.... Another example is servlet-api.