Thanks Maarten!
I've actually read that page, but what confused me was that the
properties element was supposed to load a properties file, not set a
property.
Anyway, for future reference, here is a snippet that works for me:
<?xml version="1.0" encoding="UTF-8"?>
<ivysettings>
<properties environment="env"/>
<property name="ivyhome" value="${env.IVY_HOME}"/>
<caches default="default">
<cache name="default" basedir="${ivyhome}/cache"/>
</caches>
<!-- ... -->
</ivysettings>
cheers,
Greg
On Thu, 2008-07-17 at 07:08 -0700, Maarten Coene wrote:
> You can use the environment attribute on the properties element:
>
http://ant.apache.org/ivy/history/latest-milestone/configuration/properties.html>
> cheers,
> Maarten
>
>
>
> ----- Original Message ----
> From: Gergely Nagy <
greg@...>
> To:
ivy-user@...
> Sent: Thursday, July 17, 2008 2:31:04 PM
> Subject: enviromnent variables in settings.xml
>
> Hi,
>
> I'd like to use enviromnent variables in an ivysettings.xml file. More
> specifically, i defined an IVY_HOME enviroment variable, and I want to
> reference this in other paths I define in the config, e.g. the cache and
> repo dirs. Getting this value from build.xml is not enough, as we are
> also using the ivy eclipse plugin.
>
> I could not find even after extensive googling a solution for this. Any
> pointers?
>
> Cheers,
> Greg
>
>
>