DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31927>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31927 System Property Defaults are not carried over in org.apache.tools.ant.types.CommandlineJava.setSystem() Summary: System Property Defaults are not carried over in org.apache.tools.ant.types.CommandlineJava.setSystem() Product: Ant Version: 1.6.2 Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CVS version 1.28 of org.apache.tools.ant.types.CommandlineJava (done just before Ant 1.5) had a change to the system property handling in the setSystem method. The line: Properties p = new Properties(sys = System.getProperties()); was changed to: sys = System.getProperties(); Properties p = new Properties(); for (Enumeration e = sys.keys(); e.hasMoreElements(); ) { Object o = e.nextElement(); p.put(o, sys.get(o)); } The problem is that the system property defaults are not copied over because Properties.keys() does not return the defaults in the Enumeration. We were doing a similar thing: Properties props = new Properties(System.getProperties()) props.put(... System.setProperties(props) As a result, our "old" system properties got turned into defaults. So, the setSystem method did not copy them over. The fix is pretty easy, so I have marked this problem as minor - if it is really a problem. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]