ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Clitheroe <g.clithe...@gmail.com>
Subject Re: ivy settings, include, and offline mode
Date Sun, 24 May 2009 03:23:26 GMT
Hi Scott,

I don't think you can get ivy:include to ignore this error.  You
could, I think, get the functionality that you want with 'ant copy'.
If you keep a copy of the ivysettings.xml in your project somewhere
and ivy:include that.  Then in your ant script try to copy a new
version each time and ignore any errors:

	<copy file="file:/c://.../ivysettings.xml"
tofile="${basedir}/etc/ivysettings.xml" failonerror="false"/>

We do something similar except with 'get' from a URL.

Cheers,
Geoff


On Sun, May 24, 2009 at 2:48 PM, Scott Goldstein <sgoldstein@apache.org> wrote:
> In my ivysettings, I use an include tag to include an ivy settinsg file located on a
file server.  When the file server is not available, I get the following message:
>
> BUILD FAILED
> ...build.xml:14: impossible to configure ivy:settings with given file: ...\ivysettings.xml
: java.text.ParseException: failed to load settings from file:/c://.../ivysettings.xml: io
problem while parsing config file: \\fileserver\c\...\remoteivysettings.xml (The network path
was not found)
>
> I'd like the behavior to be:
> 1.  When online, include the file
> 2.  When offline, ignore the error and continue
>
> Is there any way to achieve this?
>
> Thanks.
>
> Scott

Mime
View raw message