ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Unable to override system properties with 1.8.2
Date Thu, 04 Aug 2011 14:57:51 GMT
On 2011-07-28, Nate Drake wrote:

> Our build file uses the property to let developers customize
> property values.  We then use -D to override when doing builds for
> dev/production servers.  When using any version of Ant before 1.8.2 this
> works without issue.  With 1.8.2, won't be overridden with what we
> passed on the command line via -D.  Other non-system properties can
> be successfully overridden via -D.  I did some searching in the release
> notes and didn't see any changes that would cause this to happen.  Is this a
> known issue?

I don't recall it to be a conscious change.  Could you open a bug report
for it?

> Is there a way to get the old behavior back in 1.8.2?

You could set the properties as system properties to the Java VM rather
than arguments to Ant.  I.e. you'd pass them in the ANT_OPTS environment
variable rather than as command line arguments.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message