From: Olivier Lamy Date: Wed, 6 Feb 2013 22:54:56 +0000 (+0000) Subject: dont use a default directory inside data for repositories content X-Git-Tag: archiva-1.4-M4~246 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4fe1215675e57982f44cab4def17d8ecd082cd49;p=archiva.git dont use a default directory inside data for repositories content git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443265 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml b/archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml index c8ef58eb7..62940dcf1 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml +++ b/archiva-modules/archiva-base/archiva-configuration/src/main/resources/org/apache/archiva/configuration/default-archiva.xml @@ -5,8 +5,8 @@ internal Archiva Managed Internal Repository - ${appserver.base}/data/repositories/internal - ${appserver.base}/data/repositories/internal/.indexer + ${appserver.base}/repositories/internal + ${appserver.base}/repositories/internal/.indexer default true false @@ -18,8 +18,8 @@ snapshots Archiva Managed Snapshot Repository - ${appserver.base}/data/repositories/snapshots - ${appserver.base}/data/repositories/snapshots/.indexer + ${appserver.base}/repositories/snapshots + ${appserver.base}/repositories/snapshots/.indexer default false true 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 2fc8f7235..83f41b8f3 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 @@ -561,9 +561,8 @@ public class DefaultManagedRepositoryAdmin if ( !file.isAbsolute() ) { // add appserver.base/repositories - file = new File( - getRegistry().getString( "appserver.base" ) + File.separatorChar + "data" + File.separatorChar - + "repositories", repository.getLocation() ); + file = new File( getRegistry().getString( "appserver.base" ) + File.separatorChar + "repositories", + repository.getLocation() ); } repository.setLocation( file.getCanonicalPath() ); if ( !file.exists() ) @@ -597,9 +596,9 @@ public class DefaultManagedRepositoryAdmin if ( !repositoryDirectory.isAbsolute() ) { - repositoryDirectory = new File( - getRegistry().getString( "appserver.base" ) + File.separatorChar + "data" + File.separatorChar - + "repositories", repository.getLocation() ); + repositoryDirectory = + new File( getRegistry().getString( "appserver.base" ) + File.separatorChar + "repositories", + repository.getLocation() ); } if ( !repositoryDirectory.exists() )