Search in sources :

Example 1 with CompositeArtifactProvider

use of org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider in project tycho by eclipse.

the class TargetPlatformFactoryImpl method createExternalArtifactProvider.

/**
 * Provider for all target platform artifacts from outside the reactor.
 */
private IRawArtifactFileProvider createExternalArtifactProvider(Set<MavenRepositoryLocation> completeRepositories, List<TargetDefinitionContent> targetDefinitionsContent, IRawArtifactFileProvider pomDependencyArtifactRepository, boolean includePackedArtifacts) {
    RepositoryArtifactProvider remoteArtifactProvider = createRemoteArtifactProvider(completeRepositories, targetDefinitionsContent);
    MirroringArtifactProvider remoteArtifactCache = MirroringArtifactProvider.createInstance(localArtifactRepository, remoteArtifactProvider, includePackedArtifacts, logger);
    IRawArtifactFileProvider jointArtifactsProvider = new CompositeArtifactProvider(pomDependencyArtifactRepository, remoteArtifactCache);
    return jointArtifactsProvider;
}
Also used : CompositeArtifactProvider(org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider) IRawArtifactFileProvider(org.eclipse.tycho.repository.p2base.artifact.provider.IRawArtifactFileProvider) MirroringArtifactProvider(org.eclipse.tycho.repository.local.MirroringArtifactProvider) RepositoryArtifactProvider(org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider)

Aggregations

MirroringArtifactProvider (org.eclipse.tycho.repository.local.MirroringArtifactProvider)1 CompositeArtifactProvider (org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProvider)1 IRawArtifactFileProvider (org.eclipse.tycho.repository.p2base.artifact.provider.IRawArtifactFileProvider)1 RepositoryArtifactProvider (org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider)1