Author: ebourg
Date: Wed Mar 2 11:29:39 2005
New Revision: 155945
URL: http://svn.apache.org/viewcvs?view=rev&rev=155945
Log:
Fixed updateLastModified() in FileChangedReloadingStrategy
Modified:
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/FileChangedReloadingStrategy.java
jakarta/commons/proper/configuration/trunk/xdocs/changes.xml
Modified:
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/FileChangedReloadingStrategy.java
URL:
http://svn.apache.org/viewcvs/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/FileChangedReloadingStrategy.java?view=diff&r1=155944&r2=155945
==============================================================================
---
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/FileChangedReloadingStrategy.java
(original)
+++
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/reloading/FileChangedReloadingStrategy.java
Wed Mar 2 11:29:39 2005
@@ -1,5 +1,5 @@
/*
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@
package org.apache.commons.configuration.reloading;
-import java.io.File;
-
import org.apache.commons.configuration.FileConfiguration;
/**
@@ -96,13 +94,11 @@
*/
protected void updateLastModified()
{
- File file = new File(configuration.getFileName());
- lastModified = file.lastModified();
+ lastModified = configuration.getFile().lastModified();
}
/**
- * Check if the configuration has changed since the last
- * time it was loaded.
+ * Check if the configuration has changed since the last time it was
loaded.
*/
protected boolean hasChanged()
{
Modified: jakarta/commons/proper/configuration/trunk/xdocs/changes.xml
URL:
http://svn.apache.org/viewcvs/jakarta/commons/proper/configuration/trunk/xdocs/changes.xml?view=diff&r1=155944&r2=155945
==============================================================================
--- jakarta/commons/proper/configuration/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/configuration/trunk/xdocs/changes.xml Wed Mar 2
11:29:39 2005
@@ -7,7 +7,22 @@
<body>
- <release version="1.1-dev" date="in CVS">
+ <release version="1.1-rc2" date="in CVS">
+ <action dev="ebourg" type="update">
+ Fixed a bug in FileChangedReloadingStrategy preventing the detection
+ of a file change in some cases.
+ </action>
+ <action dev="ebourg" type="update">
+ Changed getXXXArray() and getXXXList() in DataConfiguration to return
+ an empty array/list for empty values.
+ </action>
+ <action dev="ebourg" type="update" issue="33524">
+ Fixed getLongArray(), getFloatArray() and getDoubleArray() in
DataConfiguration,
+ the values were cast into integers.
+ </action>
+ </release>
+
+ <release version="1.1-rc1" date="2004-02-13">
<action dev="oheger" type="add" issue="33475">
ConfigurationFactory now always configures digester to use the context
classloader. This avoids problems in application server environments,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]