aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssia Djambazova2011-09-27 05:00:01 (EDT)
committerVioleta Georgieva2011-09-27 05:00:37 (EDT)
commitcf8fc0b9fb2562f292de6269fa5c5ef47a6a5e46 (patch)
tree423e10336ce7141bab060c8aad9b6531fc0247cb
parent3a3f46edaebc36a18ad311910e40de7f602eda18 (diff)
downloadorg.eclipse.virgo.util-cf8fc0b9fb2562f292de6269fa5c5ef47a6a5e46.zip
org.eclipse.virgo.util-cf8fc0b9fb2562f292de6269fa5c5ef47a6a5e46.tar.gz
org.eclipse.virgo.util-cf8fc0b9fb2562f292de6269fa5c5ef47a6a5e46.tar.bz2
bug 353490: Deployment ofbig artifacts in pickup fails on Windows OS. Windows OS updates file's size and last modified flag in a different way than Unix OS, because of this additional check is added to FileSystemChecker class.
-rw-r--r--org.eclipse.virgo.util.io/src/main/java/org/eclipse/virgo/util/io/FileSystemChecker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.virgo.util.io/src/main/java/org/eclipse/virgo/util/io/FileSystemChecker.java b/org.eclipse.virgo.util.io/src/main/java/org/eclipse/virgo/util/io/FileSystemChecker.java
index 876d810..9f213c5 100644
--- a/org.eclipse.virgo.util.io/src/main/java/org/eclipse/virgo/util/io/FileSystemChecker.java
+++ b/org.eclipse.virgo.util.io/src/main/java/org/eclipse/virgo/util/io/FileSystemChecker.java
@@ -161,8 +161,8 @@ public final class FileSystemChecker {
if (size > monitorRecord.getSize()) {
// still being written? continue to track it
monitorRecord.setSize(size);
- } else {
- // not changing anymore so we can announce it:
+ } else if (file.renameTo(file)){
+ // not changing anymore so if we can rename it we can announce it:
notifyListeners(this.key(file), monitorRecord.getEvent());
// do not monitor it anymore
monitorRecords.remove(keyFile);