ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <nicolas.lale...@hibnet.org>
Subject Re: "Portable" Ivy
Date Thu, 15 Jul 2010 09:01:11 GMT
On Thursday 15 July 2010 10:12:14 Michael Richter wrote:
> On 15 July 2010 15:57, Vladimir Ritz Bossicard
>
> <vladimir@ritz-bossicard.com>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:
> >
> > <filesystem name="localrepo" checkmodified="true">
> > <artifact
> > pattern="${localrepo.dir}/[organisation]/[module]/[revision]/conf/[artifa
> >ct].[ext]" />
> > <artifact
> > pattern="${localrepo.dir}/[organisation]/[module]/[revision]/lib/[artifac
> >t]-[revision].[ext]" />
> > <artifact
> > pattern="${localrepo.dir}/[organisation]/[module]/[revision]/lib/[artifac
> >t].[ext]" />
> > </filesystem>
> >
> > 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:
<project name="myproject">
    <dirname property="myproject.dir" file="${ant.file.myproject}" />

Nicolas


Mime
View raw message