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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to