summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-proxy
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-12-12 11:26:40 +0000
committerOlivier Lamy <olamy@apache.org>2013-12-12 11:26:40 +0000
commit6b23332e9def8fc0e75be883f8a18807f0fccbbd (patch)
tree96de94a165343d5f8a69abe6f2bdd3f580e2931a /archiva-modules/archiva-base/archiva-proxy
parent074386d154d4134fbfae4bc7642cd72d58422313 (diff)
downloadarchiva-6b23332e9def8fc0e75be883f8a18807f0fccbbd.tar.gz
archiva-6b23332e9def8fc0e75be883f8a18807f0fccbbd.zip
add a new module for file locking
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550396 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-proxy')
-rw-r--r--archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java
index 9b78010e6..72eb22e8e 100644
--- a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java
+++ b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java
@@ -83,6 +83,7 @@ import javax.inject.Inject;
import javax.inject.Named;
import java.io.File;
import java.io.IOException;
+import java.io.RandomAccessFile;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
@@ -1091,6 +1092,9 @@ public class DefaultRepositoryProxyConnectors
}
target.getParentFile().mkdirs();
+ // TODO file lock library
+ RandomAccessFile raf;
+
if ( !temp.renameTo( target ) )
{
log.warn( "Unable to rename tmp file to its final name... resorting to copy command." );