From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PjiMA-0004CF-NX for garchives@archives.gentoo.org; Mon, 31 Jan 2011 01:15:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B799E05EC; Mon, 31 Jan 2011 01:14:26 +0000 (UTC) Received: from fep14.mx.upcmail.net (fep14.mx.upcmail.net [62.179.121.34]) by pigeon.gentoo.org (Postfix) with ESMTP id D0266E05EC for ; Mon, 31 Jan 2011 01:14:25 +0000 (UTC) Received: from edge02.upcmail.net ([192.168.13.237]) by viefep14-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110131011424.XUM1458.viefep14-int.chello.at@edge02.upcmail.net>; Mon, 31 Jan 2011 02:14:24 +0100 Received: from [192.168.1.100] ([78.102.215.66]) by edge02.upcmail.net with edge id 21EP1g01D1SXjXS021EQKm; Mon, 31 Jan 2011 02:14:24 +0100 X-SourceIP: 78.102.215.66 Message-ID: <4D460CEF.8010508@gentoo.org> Date: Mon, 31 Jan 2011 02:14:23 +0100 From: Vlastimil Babka User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b10pre) Gecko/20110125 Thunderbird/3.3a2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org MIME-Version: 1.0 To: =?ISO-8859-2?Q?=22Miroslav_=A9ulc_=28fordfrog=29=22?= CC: gentoo-java Subject: [gentoo-java] Re: java-dep-check on ant tasks References: <4D36FD33.5010508@gentoo.org> In-Reply-To: <4D36FD33.5010508@gentoo.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed X-Cloudmark-Analysis: v=1.1 cv=CqMFsqQC4gx7bBgpmnW/wKYuJF/a5pXPeCAfngFtYkU= c=1 sm=0 a=nLpYbSfQ9NcA:10 a=-CRmgG0JhlAA:10 a=7mOBRU54AAAA:8 a=VgRTk0J7N3fxoXncgLAA:9 a=-BYxh9jeeARW0h12Kv8A:7 a=5VE94y_5PHB3mMuM2RCl4UGUt88A:4 a=jiObf9B0YAUA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: f25fedfca170f0b425f7b6a2b3cd7be4 On 01/19/2011 04:03 PM, "Miroslav =A9ulc (fordfrog)" wrote: > hi, > > 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 prob= lem > 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=3D"test" worked too): This could work for ant-tasks themselves, but not for everything else=20 that has ant-core dependency, such as when a package provides some ant=20 task. In that case, the depending classes are needed only when invoked=20 from within ant, in which case they are already on classpath.=20 Registering as dependency would make ant put on classpath in all cases=20 the package is used. The bottom line is, there should be a way to exclude stuff (such as ant=20 classes) in java-dep-check. BTW, the mailing list is better than the java alias for this. Seems to=20 get much less spam as I see it :) Vlastimil > $ cvs diff ant-tasks.eclass > Index: ant-tasks.eclass > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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