Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 22911 invoked from network); 23 Aug 2005 13:54:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Aug 2005 13:54:32 -0000 Received: (qmail 36649 invoked by uid 500); 23 Aug 2005 13:54:29 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 36579 invoked by uid 500); 23 Aug 2005 13:54:29 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 36566 invoked by uid 99); 23 Aug 2005 13:54:29 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2005 06:54:28 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 7743A122; Tue, 23 Aug 2005 15:54:27 +0200 (CEST) From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 36321] New: - ReloadingStrategy with Classpath file X-Bugzilla-Reason: AssignedTo Message-Id: <20050823135427.7743A122@ajax.apache.org> Date: Tue, 23 Aug 2005 15:54:27 +0200 (CEST) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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