diff options
author | Olivier Lamy <olamy@apache.org> | 2012-04-02 19:26:58 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-04-02 19:26:58 +0000 |
commit | 3e8972f42e0e7c66fdbed0ee4d06d09a8037cab3 (patch) | |
tree | 808e339803718b56c52c7f744b3298d947bb799d /archiva-modules/archiva-base/archiva-repository-admin | |
parent | 949b66bf1a66fafd40b55a20974b465e289b4780 (diff) | |
download | archiva-3e8972f42e0e7c66fdbed0ee4d06d09a8037cab3.tar.gz archiva-3e8972f42e0e7c66fdbed0ee4d06d09a8037cab3.zip |
take of non absolute path when creating a repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308492 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-admin')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java index cd0291a70..5a7c7cd1f 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java @@ -523,6 +523,12 @@ public class DefaultManagedRepositoryAdmin { // Normalize the path File file = new File( repository.getLocation() ); + if ( !file.isAbsolute() ) + { + // add appserver.base/repositories + file = new File( getRegistry().getString( "appserver.base" ) + File.separatorChar + "repositories", + repository.getLocation() ); + } repository.setLocation( file.getCanonicalPath() ); if ( !file.exists() ) { |