be consistent for repository created with a relative path with default ones

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1443218 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-06 21:21:33 +00:00
parent 6131e693a9
commit 442c782a1d
1 changed files with 3 additions and 2 deletions

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