Adding default location to repository

This commit is contained in:
Martin Stockhammer 2019-05-25 10:31:14 +02:00
parent aabd20f668
commit 12c05a8d1a
1 changed files with 2 additions and 0 deletions

View File

@ -69,11 +69,13 @@ public class MavenManagedRepository extends AbstractManagedRepository
{ {
super( RepositoryType.MAVEN, id, name, basePath); super( RepositoryType.MAVEN, id, name, basePath);
this.indexCreationFeature = new IndexCreationFeature(this, this); this.indexCreationFeature = new IndexCreationFeature(this, this);
setLocation(basePath.resolve(id).toUri());
} }
public MavenManagedRepository( Locale primaryLocale, String id, String name, Path basePath ) public MavenManagedRepository( Locale primaryLocale, String id, String name, Path basePath )
{ {
super( primaryLocale, RepositoryType.MAVEN, id, name, basePath ); super( primaryLocale, RepositoryType.MAVEN, id, name, basePath );
setLocation(basePath.resolve(id).toUri());
} }
@Override @Override