Bug 51792

Summary: Unable to override system properties with 1.8.2
Product: Ant Reporter: martin.raie
Component: CoreAssignee: Ant Notifications List <notifications>
Status: RESOLVED FIXED    
Severity: normal CC: jglick, sshinderuk, vivodamichele
Priority: P2    
Version: 1.8.2   
Target Milestone: 1.9.0   
Hardware: PC   
OS: All   
Bug Depends on:    
Bug Blocks: 18732    
Attachments: Simple test case demonstrating the problem

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.