ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Partridge, Michael" <>
Subject RE: Newbie settings file question
Date Wed, 08 Oct 2008 20:09:06 GMT
Thanks for the reply! Both user.dir and basedir were empty, so I tried
googling "ant user home" and found the user.home ant property, so I
ended up with 

<ivy:settings file="${user.home}/.ivy2/ivysettings.xml"/>

which works.


-----Original Message-----
From: Maarten Coene [] 
Sent: Wednesday, October 08, 2008 2:48 PM
Subject: Re: Newbie settings file question

The ivy.default.ivy.user.dir property will be set *after* Ivy has been
So you use that property too early.

I think you could use standard properties in your situation, something
<ivy:settings file="${user.dir}/ivysettings.xml"/>
<ivy:settings file="${basedir}/ivysettings.xml"/>


----- Original Message ----
From: "Partridge, Michael" <>
Sent: Wednesday, October 8, 2008 6:40:58 PM
Subject: Newbie settings file question

In my project build.xml, I'm trying to load my ivy settings file from my
ivy user dir, but the ivy user dir properties don't appear to be
replaced in the file attribute of the settings tag. I've tried a couple
of different ones that I found in the Ivy doc:

<ivy:settings file="${ivy.user.dir}/ivysettings.xml"/>
<ivy:settings file="${ivy.default.ivy.user.dir}/ivysettings.xml"/>

Is this possible? 

Specifying an absolute path in the file attribute works, but I'd like
the settings file to reside in the ivy user dir, the location of which
will differ between developers on windows and linux.

Here's a snippet of the output:

[ivy:settings] :: Ivy 2.0.0-beta2 - 20080225093827 :: ::

D:\eclipse-workspace\WeyGrpCopy\build-byhand.xml:37: settings file does
not exist:

Mike Partridge

CONFIDENTIALITY NOTICE: This electronic message transmission is
intended only for the person or the entity to which it is addressed
and may contain information that is privileged, confidential or
otherwise protected from disclosure. If you have received this
transmission, but are not the intended recipient, you are hereby
notified that any disclosure, copying, distribution or use of the
contents of this information is strictly prohibited. If you have
received this e-mail in error, please contact the sender of the
e-mail and destroy the original message and all copies.


View raw message