commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30858] - [configuration] PropertyConfiguration.save() does not take basePath into account
Date Fri, 27 Aug 2004 12:22:01 GMT
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=30858>.
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=30858

[configuration] PropertyConfiguration.save() does not take basePath into account





------- Additional Comments From oliver.heger@t-online.de  2004-08-27 12:22 -------
The basePath can indeed contain a full URL, and not necessarily a file URL. Only
removing the file: prefix will probably not work in all constellations (just
consider that in windows environments the backslash is used as path separator).

I would suggest to implement the save() method the same way as the load()
method, i.e. obtaining the URL for storing from ConfigurationUtils (which takes
the base path into account and can deal with both absolute and relative URLs)
and then opening an OutputStream on this URL.

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message