ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 user.name property to let developers customize
> property values.  We then use -D to override user.name 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, user.name 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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message