Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 55113 invoked from network); 15 Jul 2010 09:01:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 09:01:59 -0000 Received: (qmail 46768 invoked by uid 500); 15 Jul 2010 09:01:59 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 46415 invoked by uid 500); 15 Jul 2010 09:01:57 -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 46404 invoked by uid 99); 15 Jul 2010 09:01:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 09:01:56 +0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=SPF_HELO_PASS,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of nicolas.lalevee@hibnet.org does not designate 216.86.168.183 as permitted sender) Received: from [216.86.168.183] (HELO mxout-08.mxes.net) (216.86.168.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 09:01:48 +0000 Received: from pc-marianne.anyware (unknown [84.14.163.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id BA061509DB for ; Thu, 15 Jul 2010 05:00:57 -0400 (EDT) From: Nicolas =?utf-8?q?Lalev=C3=A9e?= To: ivy-user@ant.apache.org Subject: Re: "Portable" Ivy Date: Thu, 15 Jul 2010 11:01:11 +0200 User-Agent: KMail/1.9.10 References: <4C3EBF4D.8060806@ritz-bossicard.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201007151101.11985.nicolas.lalevee@hibnet.org> X-Virus-Checked: Checked by ClamAV on apache.org On Thursday 15 July 2010 10:12:14 Michael Richter wrote: > On 15 July 2010 15:57, Vladimir Ritz Bossicard > > wrote: > > Michael, > > > > I can't seem to find some way to > > > >> have Ivy use a repository whose location might change from invocation to > >> invocation. The problem is that depending on the physical configuration > >> my > >> Ivy installation (and attendant repository) might be on a > > > > I solved a similar problem by adding placeholders in the ivyconf.xml > > file: > > > > > > > pattern="${localrepo.dir}/[organisation]/[module]/[revision]/conf/[artifa > >ct].[ext]" /> > > > pattern="${localrepo.dir}/[organisation]/[module]/[revision]/lib/[artifac > >t]-[revision].[ext]" /> > > > pattern="${localrepo.dir}/[organisation]/[module]/[revision]/lib/[artifac > >t].[ext]" /> > > > > > > with ${localrepo.dir} simply being an Ant property. > > The problem here being that the localrepo will change from machine to > machine as I move the USB stick. you could use the property ${ivy.settings.dir} which is the absolute path to the directory containing the ivysettings file. In Ant you can also have the directory containg the build.xml file with: Nicolas