aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssia Djambazova2011-09-27 05:00:01 (EDT)
committerVioleta Georgieva2011-09-27 05:00:37 (EDT)
commitae4e3cc06c81b4dac363c78764ae8ecd2acb2601 (patch)
tree423e10336ce7141bab060c8aad9b6531fc0247cb
parentfce2ca2481559859398cdc88a9b283c55fbc4d43 (diff)
downloadorg.eclipse.virgo.util-ae4e3cc06c81b4dac363c78764ae8ecd2acb2601.zip
org.eclipse.virgo.util-ae4e3cc06c81b4dac363c78764ae8ecd2acb2601.tar.gz
org.eclipse.virgo.util-ae4e3cc06c81b4dac363c78764ae8ecd2acb2601.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);