]> source.dussan.org Git - archiva.git/commitdiff
be consistent for repository created with a relative path with default ones
authorOlivier Lamy <olamy@apache.org>
Wed, 6 Feb 2013 21:21:33 +0000 (21:21 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 6 Feb 2013 21:21:33 +0000 (21:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443218 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java

index b110d42854b5cb731d18caf78bb4bbd5cd2db061..ce884bfc1380a7569f13e7e51b7b64003e049622 100644 (file)
@@ -561,8 +561,9 @@ public class DefaultManagedRepositoryAdmin
         if ( !file.isAbsolute() )
         {
             // add appserver.base/repositories
-            file = new File( getRegistry().getString( "appserver.base" ) + File.separatorChar + "repositories",
-                             repository.getLocation() );
+            file = new File(
+                getRegistry().getString( "appserver.base" ) + File.separatorChar + "data" + File.separatorChar
+                    + "repositories", repository.getLocation() );
         }
         repository.setLocation( file.getCanonicalPath() );
         if ( !file.exists() )