aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-04-22 12:02:32 +1000
committerOlivier Lamy <olamy@apache.org>2014-04-22 12:02:32 +1000
commit9a09994c8cf6a47a0edf9dda434f3b8cf4140e12 (patch)
tree1aa01bf744d164575ea521bd23eac6bdbbd76f4f /archiva-modules/archiva-base
parent7fba33c0bbf50a9e67c4842370f28f211d5a2b84 (diff)
downloadarchiva-9a09994c8cf6a47a0edf9dda434f3b8cf4140e12.tar.gz
archiva-9a09994c8cf6a47a0edf9dda434f3b8cf4140e12.zip
simply use File implementation as we are now 1.7 required
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r--archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java27
1 files changed, 1 insertions, 26 deletions
diff --git a/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java b/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java
index 583d3b8af..ee4fb35be 100644
--- a/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java
+++ b/archiva-modules/archiva-base/archiva-filelock/src/main/java/org/apache/archiva/common/filelock/DefaultFileLockManager.java
@@ -276,32 +276,7 @@ public class DefaultFileLockManager
private boolean mkdirs( File directory )
{
- if ( directory == null )
- {
- return false;
- }
-
- if ( directory.exists() )
- {
- return false;
- }
- if ( directory.mkdir() )
- {
- return true;
- }
-
- File canonDir = null;
- try
- {
- canonDir = directory.getCanonicalFile();
- }
- catch ( IOException e )
- {
- return false;
- }
-
- File parentDir = canonDir.getParentFile();
- return ( parentDir != null && ( mkdirs( parentDir ) || parentDir.exists() ) && canonDir.mkdir() );
+ return directory.mkdirs();
}
@Override