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
This commit is contained in:
Olivier Lamy 2013-02-06 22:54:56 +00:00
parent ac1cea3827
commit 4fe1215675
2 changed files with 9 additions and 10 deletions

View File

@ -5,8 +5,8 @@
<managedRepository>
<id>internal</id>
<name>Archiva Managed Internal Repository</name>
<location>${appserver.base}/data/repositories/internal</location>
<indexDir>${appserver.base}/data/repositories/internal/.indexer</indexDir>
<location>${appserver.base}/repositories/internal</location>
<indexDir>${appserver.base}/repositories/internal/.indexer</indexDir>
<layout>default</layout>
<releases>true</releases>
<snapshots>false</snapshots>
@ -18,8 +18,8 @@
<managedRepository>
<id>snapshots</id>
<name>Archiva Managed Snapshot Repository</name>
<location>${appserver.base}/data/repositories/snapshots</location>
<indexDir>${appserver.base}/data/repositories/snapshots/.indexer</indexDir>
<location>${appserver.base}/repositories/snapshots</location>
<indexDir>${appserver.base}/repositories/snapshots/.indexer</indexDir>
<layout>default</layout>
<releases>false</releases>
<snapshots>true</snapshots>

View File

@ -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() )