ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20215] - System.getProperties()
Date Tue, 27 May 2003 09:54:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20215>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20215

System.getProperties()





------- Additional Comments From j_a_fernandez@yahoo.com  2003-05-27 09:54 -------
Please do not use Hashtable.keySet() and Hashtable.get() on Properties objects.
This is bad programming since it will not look at the chain of default
definitions defined by the Properties API.

Use Properties.propertyNames() and Property.getProperty() instead.
This will allow enbedded code that have done System.setProperties()
to behave correctly, since you may have a chain of properties.

I spend two days tracking a bug in Weblogic just because they do not
use this API correctly. Lets not get the same bad codding in ANT.

Mime
View raw message