Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 33033 invoked from network); 22 Apr 2010 11:23:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 11:23:50 -0000 Received: (qmail 61136 invoked by uid 500); 22 Apr 2010 11:23:50 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 61019 invoked by uid 500); 22 Apr 2010 11:23:49 -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 61011 invoked by uid 99); 22 Apr 2010 11:23:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 11:23:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tself@bbn.com designates 128.33.1.81 as permitted sender) Received: from [128.33.1.81] (HELO smtp.bbn.com) (128.33.1.81) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 11:23:40 +0000 Received: from ros-dhcp192-1-51-48.bbn.com ([192.1.51.48]:53360 helo=arltself) by smtp.bbn.com with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O4uV5-000HTP-Sp for ivy-user@ant.apache.org; Thu, 22 Apr 2010 07:23:19 -0400 From: "Troy Self" To: References: <006a01cadfbe$08d1ade0$1a7509a0$@com> <829814.17242.qm@web30803.mail.mud.yahoo.com> In-Reply-To: Subject: RE: filesystem resolver for win/mac Date: Thu, 22 Apr 2010 07:23:56 -0400 Message-ID: <01a901cae20e$4c4859f0$e4d90dd0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acrg6kNTAYi61LqnQ9CZlTzB+h02lQBI9ouw Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org Thanks to all. I set a default value for root.drive in ivysettings.xml = and then override it in the build.xml using: This appears to be working. -- tBs > -----Original Message----- > From: Jeff Evans (IT) [mailto:Jeffrey.Evans@morganstanley.com] > Sent: Tuesday, April 20, 2010 8:26 PM > To: ivy-user@ant.apache.org > Subject: Re: filesystem resolver for win/mac >=20 > Yep.=A0 In addition, you can give an Ivy property > in > the settings file with the same name ("repo.root" in this case) and > value, but with override=3D"false". This makes the settings file = useful > even outside the context of Ant (within Eclipse/IvyDE, for example), > but if a value is supplied by Ant, it will take precedence. >=20 > There is still a slight problem that the value is duplicated between > the Ant world and Ivy world, but even this can be overcome if you set > an environment variable giving the value of the repository root, and > then set repo.root from both Ant and Ivy files based on this > environment variable (their mechanisms for doing this are slightly > different, but both work fine). >=20 >=20 > On Tue, Apr 20, 2010 at 7:16 PM, Tim Brown wrote: > > > > That's exactly what we do here. > > > > On Tue, Apr 20, 2010 at 2:23 PM, Maarten Coene > wrote: > > > > > Maybe you can work with variables and specify your pattern as > > > "${repo.root}/[organisation]/..." in your settings.xml? > > > In you Ant build.xml, you can give the properrty "repo.root" an > appropriate > > > value. > > > > > > Maarten > > > > > > > > > > > > > > > ----- Original Message ---- > > > From: Troy Self > > > To: ivy-user@ant.apache.org > > > Sent: Mon, April 19, 2010 2:44:21 PM > > > Subject: filesystem resolver for win/mac > > > > > > Is there a path format that allows me to specify a filesystem URL > that > > > works > > > in Windows and MacOS? > > > > > > If you put pattern=3D"/mydirectory/ivyrepo" then Ivy complains = that > the path > > > must be absolute. The only way I've been able to do that in = Windows > is to > > > specify pattern=3D"c:/mydirectory/ivyrepo", which then fails on a > Mac. > > > > > > Is there an Ivy property I can reference that is the root drive? > I'd like > > > to > > > use something similar to how ant lets you do this: > > > > > > > > > > > > Putting "location=3D" tells Ant to substitute an absolute path. = Can I > do that > > > in the ivysettings.xml file somehow? > > > > > > Thanks, > > > > > > -- tBs > > > > > > > > > > > >