Return-Path: X-Original-To: apmail-ant-ivy-user-archive@www.apache.org Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77B107093 for ; Tue, 18 Oct 2011 21:22:12 +0000 (UTC) Received: (qmail 88879 invoked by uid 500); 18 Oct 2011 21:22:12 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 88847 invoked by uid 500); 18 Oct 2011 21:22:12 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 88838 invoked by uid 99); 18 Oct 2011 21:22:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 21:22:12 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_HELO_PASS,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of nicolas.lalevee@hibnet.org does not designate 216.86.168.182 as permitted sender) Received: from [216.86.168.182] (HELO mxout-07.mxes.net) (216.86.168.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 21:22:06 +0000 Received: from [192.168.1.13] (unknown [90.20.77.119]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 9FEB522E257 for ; Tue, 18 Oct 2011 17:21:44 -0400 (EDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: IvyDE & source variations (was: workaround to consume legacy Ivy modules) From: =?iso-8859-1?Q?Nicolas_Lalev=E9e?= In-Reply-To: Date: Tue, 18 Oct 2011 23:21:42 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <9B13BD18-C7BA-44EA-BCEA-868E03B3272E@hibnet.org> References: To: ivy-user@ant.apache.org X-Mailer: Apple Mail (2.1084) Le 18 oct. 2011 =E0 23:00, Mitch Gitman a =E9crit : > Archie, thanks for the alternate approach. In case I still want to = consider > the original approach--if anyone else knows about the particular place = in > the code that I want to override, I'd love to hear. > Correction. I believe I meant ${ivy.module.name}. >=20 > Actually, this raises another question. How would I configure IvyDE to > recognize foo.src.zip as the source for foo.jar? >=20 > The "Sources suffixes" configuration has default values like: > -source,-sources,-src >=20 > I could change this value to the following: > .src >=20 > Still, the presumption seems to be that the extension is always .jar. = It > doesn't appear to accommodate .zip. IvyDE doesn't care about the extension. It only compares the artifact = names and artifacts types declared in the ivy.xml to find out which is = source of the other. Nicolas > On Tue, Oct 18, 2011 at 11:00 AM, Archie Cobbs = wrote: >=20 >> Just a thought... maybe instead you could write a resolver that = contains a >> nested, normal resolver, and applies a configured XLST stylesheet to = all of >> the ivy.xml files it downloads. Then what you want to do would be an = easy >> specific case. >>=20 >> -Archie >>=20 >> On Tue, Oct 18, 2011 at 12:27 PM, Mitch Gitman = wrote: >>=20 >>> It looks like I'm going to have to write a custom Ivy resolver. I = want to >>> consume modules that contain both a *.jar file and a *.src.zip file = but >>> where the ivy.xml doesn't specify any publications. Unfortunately, = these >>> modules are already published to a shared location and I can't just = go >> and >>> blow them away. I understand that Ivy's default behavior is to treat = the >>> lack of a publications element as if it were the following: >>> >>> >>> >>>=20 >>> I forget if the property is module.name or something else. For the >>> artifact >>> element, the default type and ext of "jar" kick in. >>>=20 >>> So I want to get the resolver to interpret this absence of = publications >>> instead as: >>> >>> >>> >>> >>>=20 >>> Would anyone happen to know the bit of resolver code that defaults = the >>> absence of publications so that I might override it? >>>=20 >>=20 >>=20 >>=20 >> -- >> Archie L. Cobbs >>=20