Thanks Nicolas.  I do see in the Ant log that the message does come out after 
the default Ivy settings file is loaded.  FWIW, I do have an Ivy settings file 
that gets loaded but the default value of 10s always appears in Ant's debug for 
the property.  Can this property be overridden on the command line or does it 
need to be set in the settings file?

Snippets of the Ant log:

Apache Ant(TM) version 1.8.2 compiled on December 20 2010
...
Setting ro project property: ivy.cache.ttl.default -> 5h
...
[ivy:configure] Loading 
jar:file:/C:/EclipseDevelopment/DM-DMV-TEST-REORG/DMWeb/ifabs/ant_home/lib/ivy.jar!/org/apache/ivy/core/settings/ivy.properties
Override ignored for property "ivy.configurations"
Override ignored for property "ivy.cache.ttl.default"
...
[ivy:configure] setting 'ivy.cache.ttl.default' to '10s'
...
ivy.cache.ttl.default.ivy.instance -> 10s
...
BUILD SUCCESSFUL
Total time: 25 seconds

-----Original Message-----
From: Nicolas Lalevée [mailto:[email protected]] 
Sent: Friday, February 15, 2013 11:07 AM
To: [email protected]
Subject: Re: Ant command line override not working?


Le 14 févr. 2013 à 22:37, James Poli <[email protected]> a écrit :

> Hello,
> 
> I'm trying to override the property ivy.cache.ttl.default on the Ant command 
> line but it doesn't seem to work?
> I'm using:
> 
> -Divy.cache.ttl.default=5h
> 
> and always get the following message in the Ant output with debug on:
> 
> Setting Override ignored for property "ivy.cache.ttl.default"

If you're using the default ivysettings, which is loading the file 
ivy.properties in Ivy's jar, what you are seeing is that Ivy ignore the 
property found is that property file and keep the one you have set on the 
command line.

Nicolas



Reply via email to