You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/08/23 15:54:27 UTC
DO NOT REPLY [Bug 36321] New: -
ReloadingStrategy with Classpath file
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=36321>.
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=36321
Summary: ReloadingStrategy with Classpath file
Product: Commons
Version: 1.1 Final
Platform: Other
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: Configuration
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: herve.gerard@macif.fr
Hello
First of all, congratulation for your incredible job.
I have tested commons-configuration with a properties file find in the
user-Classpath. This PropertiesConfiguration has a FileChangedReloadingStrategy.
When this file is changed, the protected method hasChanged() from the
FileChangedReloadingStrategy class stucks on the "if
(!configuration.getFile().exists())" line. The file never exists !!!
I have change the AbstractFileConfiguration class by affected to a protected
propertie fileUrl the URL in the "public void load(String fileName)" method.
After, I've changed the getFile :
public File getFile()
{
//HGerard - MACIF
return ConfigurationUtils.fileFromURL(this.fileUrl);
//return ConfigurationUtils.getFile(getBasePath(), getFileName());
}
and it works. Is this a bug or i don't understand how to use the
PropertiesConfiguration ?
best regards.
Herve GERARD
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org