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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to