From ivy-user-return-3661-apmail-ant-ivy-user-archive=ant.apache.org@ant.apache.org Wed Aug 06 09:44:21 2008 Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 32094 invoked from network); 6 Aug 2008 09:44:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2008 09:44:21 -0000 Received: (qmail 82611 invoked by uid 500); 6 Aug 2008 09:44:20 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 82580 invoked by uid 500); 6 Aug 2008 09:44:19 -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 82569 invoked by uid 99); 6 Aug 2008 09:44:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 02:44:19 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Alexander.Foreman@morganstanley.com designates 205.228.53.68 as permitted sender) Received: from [205.228.53.68] (HELO hqmtaint01.ms.com) (205.228.53.68) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 09:43:22 +0000 Received: from hqmtaint01 (localhost.ms.com [127.0.0.1]) by hqmtaint01.ms.com (output Postfix) with ESMTP id 1E15CD8C531 for ; Wed, 6 Aug 2008 05:43:19 -0400 (EDT) Received: from ny0032as01 (unknown [144.203.194.95]) by hqmtaint01.ms.com (internal Postfix) with ESMTP id 03E902C036 for ; Wed, 6 Aug 2008 05:43:19 -0400 (EDT) Received: from ny0032as01 (localhost [127.0.0.1]) by ny0032as01 (msa-out Postfix) with ESMTP id DF0FAC945DC for ; Wed, 6 Aug 2008 05:43:18 -0400 (EDT) Received: from PIWEXOB02.msad.ms.com (piwexob02 [205.228.46.104]) by ny0032as01 (mta-in Postfix) with ESMTP id DC99F16402F for ; Wed, 6 Aug 2008 05:43:18 -0400 (EDT) Received: from piexcat01.msad.ms.com ([10.163.2.210]) by PIWEXOB02.msad.ms.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 6 Aug 2008 05:43:18 -0400 Received: from OZWEXHUB01.msad.ms.com (10.174.147.76) by piexcat01.msad.ms.com (10.163.2.210) with Microsoft SMTP Server (TLS) id 8.1.278.0; Wed, 6 Aug 2008 05:43:17 -0400 Received: from LNWEXMBX0104.msad.ms.com ([10.174.156.26]) by OZWEXHUB01.msad.ms.com ([10.174.147.76]) with mapi; Wed, 6 Aug 2008 10:43:16 +0100 From: "Foreman, Alex \(IT\)" To: Date: Wed, 6 Aug 2008 10:43:14 +0100 Content-class: urn:content-classes:message Subject: RE: Problem with revConstraint X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2992 Importance: normal Priority: normal Thread-Topic: Problem with revConstraint Thread-Index: Acj2W6bhnKVeafXMQJiL++lEGr1SHwBTPVzA Message-ID: References: <635a05060808041057v7dd2a173gb178d7f507897092@mail.gmail.com> In-Reply-To: <635a05060808041057v7dd2a173gb178d7f507897092@mail.gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-tm-as-product-ver: SMEX-8.0.0.1259-5.500.1027-16076.002 x-tm-as-result: No--48.329700-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 06 Aug 2008 09:43:18.0880 (UTC) FILETIME=[DB798600:01C8F7A8] X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.35/RELEASE, bases: 06082008 #941889, status: clean X-Virus-Checked: Checked by ClamAV on apache.org Many thanks for this. I've been having trouble building the trunk for some reason. Is there any chance we can have the latest snapshot in jar form like = last time? Also is there a snapshot IvyDE available anywhere nightly build or = somesuch. If I can get this ill let you know if all is working. Thanks, Alex Foreman Morgan Stanley | Technology 20 Cabot Square | Canary Wharf | Floor 06 London, E14 4QW Phone: +44 20 7677-5732 Alexander.Foreman@morganstanley.com -----Original Message----- From: Xavier Hanin [mailto:xavier.hanin@gmail.com] Sent: 04 August 2008 18:58 To: ivy-user@ant.apache.org Subject: Re: Problem with revConstraint On Wed, Jul 30, 2008 at 3:34 PM, Foreman, Alex (IT) < = Alexander.Foreman@morganstanley.com> wrote: > Hi, > > We use a custom version matcher that loads in default values from a > property file and when rev=3D"default" we look for a property called > 'org.module.default' and use that value. > > E.g. > Apache.ivy.default=3D1.3 > > Would match org=3D"apache" name=3D"ivy" rev=3D"default" to rev=3D"1.3" = in the > delivered ivy file and also place revConstraint=3D"default" into that > dependency. > > If we have someone that consumes this ivy that does not load up the > properties file we fail even tho we are using resolveMode=3D"default". > IE it shuld not take into account the revConstraint. It is however > trying to work this out anyway and causing the cachepath to fail as > our default version matcher cannot find the property. > > Eg I ask for Apache#ivy!1.3 > > The ivy file has a revConstraint=3D"default" in its dependeny and we > crash out even tho I specifed an exact value and did not want to use = the default. > > My question is: > Why does the resolve/cachepath look at the revConstraint when we are > not interested in it in resolveMode=3D"true". In default resolveMode, the revConstraint should be ignored except for = reporting. After checking the code it seems that there's one place where = it's used whatever the setting is: in ModuleInSort class. I see no = reason why this is used, I guess it's due to the initial way of dealing = with resolveMode, but now we use a mediation mechanism, so now using the = dependency revision id seems to be better. I've just committed this = change in Ivy, could you try out the trunk version and tell if it works = better. Xavier > > > Can we : > a) not try to resolve the revConstraint if it is not needed? > B) strip revConstraint out on a deliver so its not there? > C) tell ivy to always ignore the revConstraint. > > Can we currently do any of the above 3? > > If not do people consider this a bug and should it be fixed? > > Many thanks, > > Alex Foreman > Morgan Stanley | Technology > 20 Cabot Square | Canary Wharf | Floor 06 London, E14 4QW > Phone: +44 20 7677-5732 > Alexander.Foreman@morganstanley.com > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender > does not intend to waive confidentiality or privilege. Use of this > email is prohibited when received in error. > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ = http://ant.apache.org/ivy/ http://www.xoocode.org/ -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender = does not intend to waive confidentiality or privilege. Use of this email = is prohibited when received in error.