use of org.eclipse.tycho.repository.local.LocalArtifactRepository 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.repository.local.LocalArtifactRepository in project tycho by eclipse.
the class P2ResolverFactoryImpl method getTargetPlatformFactory.
@Override
public TargetPlatformFactoryImpl getTargetPlatformFactory() {
try {
// TODO don't synchronize twice
LocalMetadataRepository localMetadataRepo = getLocalMetadataRepository(mavenContext, localRepoIndices);
LocalArtifactRepository localArtifactRepo = getLocalArtifactRepository(mavenContext, localRepoIndices);
return new TargetPlatformFactoryImpl(mavenContext, remoteAgentManager.getProvisioningAgent(), localArtifactRepo, localMetadataRepo, targetDefinitionResolverService);
} catch (ProvisionException e) {
throw new RuntimeException(e);
}
}
Aggregations