use of org.eclipse.tycho.p2.repository.RepositoryReader in project tycho by eclipse.
the class P2ResolverFactoryImpl method getLocalArtifactRepository.
private static synchronized LocalArtifactRepository getLocalArtifactRepository(MavenContext mavenContext, LocalRepositoryP2Indices localRepoIndices) {
if (localArtifactRepository == null) {
RepositoryReader contentLocator = new LocalRepositoryReader(mavenContext.getLocalRepositoryRoot());
localArtifactRepository = new LocalArtifactRepository(localRepoIndices, contentLocator);
}
return localArtifactRepository;
}
use of org.eclipse.tycho.p2.repository.RepositoryReader in project tycho by eclipse.
the class P2ResolverFactoryImpl method getLocalMetadataRepository.
private static synchronized LocalMetadataRepository getLocalMetadataRepository(MavenContext context, LocalRepositoryP2Indices localRepoIndices) {
if (localMetadataRepository == null) {
File localMavenRepoRoot = context.getLocalRepositoryRoot();
RepositoryReader contentLocator = new LocalRepositoryReader(localMavenRepoRoot);
localMetadataRepository = new LocalMetadataRepository(localMavenRepoRoot.toURI(), localRepoIndices.getMetadataIndex(), contentLocator);
}
return localMetadataRepository;
}
Aggregations