Bug 51792 - Unable to override system properties with 1.8.2
Unable to override system properties with 1.8.2
Status: RESOLVED FIXED
Product: Ant
Classification: Unclassified
Component: Core
1.8.2
PC All
: P2 normal with 1 vote (vote)
: 1.9.0
Assigned To: Ant Notifications List
:
Depends on:
Blocks: 18732
  Show dependency tree
 
Reported: 2011-09-09 14:23 UTC by martin.raie
Modified: 2012-05-28 15:53 UTC (History)
3 users (show)



Attachments
Simple test case demonstrating the problem (1.78 KB, text/x-log)
2011-09-12 23:16 UTC, Andrew Stevens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martin.raie 2011-09-09 14:23:15 UTC
Since version 1.8.2 Ant does not override system properties. For example -Duser.name=newvalue does not override default value as it did before 1.8.2. Other non-system properties can be successfully overridden via -D.
Comment 1 Andrew Stevens 2011-09-12 23:16:16 UTC
Created attachment 27489 [details]
Simple test case demonstrating the problem

NB It's not only user.name that's affected, java.home exhibited the same behaviour, so presumably all system properties are the same.
Comment 2 Sergey Shinderuk 2011-11-10 07:38:42 UTC
AFAIU this is the side-effect of this change
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/Main.java?r1=948667&r2=954939&diff_format=h
Comment 3 Michele Vivoda 2012-04-28 17:05:15 UTC
Please fix this.
Comment 4 J.M. (Martijn) Kruithof 2012-05-28 15:53:23 UTC
Thanks for the report, and the pointer to the change that caused this behaviour.