Package org.eclipse.tycho.p2.resolver
Class P2ResolverImpl
- java.lang.Object
-
- org.eclipse.tycho.p2.resolver.P2ResolverImpl
-
- All Implemented Interfaces:
P2Resolver
public class P2ResolverImpl extends Object implements P2Resolver
-
-
Field Summary
-
Fields inherited from interface org.eclipse.tycho.p2.resolver.facade.P2Resolver
ANY_QUALIFIER
-
-
Constructor Summary
Constructors Constructor Description P2ResolverImpl(TargetPlatformFactoryImpl targetPlatformFactory, MavenLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependency(String type, String id, String versionRange)protected voidaddMavenArtifact(DefaultP2ResolutionResult result, org.eclipse.equinox.p2.metadata.IInstallableUnit iu, String id, String version, String mavenClassifier, File location)P2ResolutionResultcollectProjectDependencies(TargetPlatform targetPlatform, ReactorProject project)List<org.eclipse.equinox.p2.metadata.IRequirement>getAdditionalRequirements()P2ResolutionResultgetTargetPlatformAsResolutionResult(TargetPlatformConfigurationStub tpConfiguration, String eeName)protected P2ResolutionResultresolveDependencies(ReactorProject project, AbstractResolutionStrategy strategy, TargetEnvironment environment)P2ResolutionResultresolveInstallableUnit(TargetPlatform targetPlatform, String id, String versionRange)Resolves specified installable unit identified by id and versionRange.P2ResolutionResultresolveMetadata(TargetPlatformConfigurationStub tpConfiguration, String eeName)Map<TargetEnvironment,P2ResolutionResult>resolveTargetDependencies(TargetPlatform targetPlatform, ReactorProject project)Returns list ordered of resolution result, one per requested TargetEnvironment.voidsetAdditionalFilterProperties(Map<String,String> additionalFilterProperties)Sets additional properties that will be used to evaluate filter expressions in the p2 metadata.voidsetEnvironments(List<TargetEnvironment> environments)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.tycho.p2.resolver.facade.P2Resolver
resolveDependencies
-
-
-
-
Constructor Detail
-
P2ResolverImpl
public P2ResolverImpl(TargetPlatformFactoryImpl targetPlatformFactory, MavenLogger logger)
-
-
Method Detail
-
resolveTargetDependencies
public Map<TargetEnvironment,P2ResolutionResult> resolveTargetDependencies(TargetPlatform targetPlatform, ReactorProject project)
Description copied from interface:P2ResolverReturns list ordered of resolution result, one per requested TargetEnvironment.- Specified by:
resolveTargetDependenciesin interfaceP2Resolverproject- The reactor project to be resolved. May benull, in which case only the additional dependencies are resolved.- See Also:
P2Resolver.addDependency(String, String, String)
-
collectProjectDependencies
public P2ResolutionResult collectProjectDependencies(TargetPlatform targetPlatform, ReactorProject project)
- Specified by:
collectProjectDependenciesin interfaceP2Resolver
-
resolveMetadata
public P2ResolutionResult resolveMetadata(TargetPlatformConfigurationStub tpConfiguration, String eeName)
- Specified by:
resolveMetadatain interfaceP2Resolver
-
getTargetPlatformAsResolutionResult
public P2ResolutionResult getTargetPlatformAsResolutionResult(TargetPlatformConfigurationStub tpConfiguration, String eeName)
- Specified by:
getTargetPlatformAsResolutionResultin interfaceP2Resolver
-
resolveDependencies
protected P2ResolutionResult resolveDependencies(ReactorProject project, AbstractResolutionStrategy strategy, TargetEnvironment environment)
-
addMavenArtifact
protected void addMavenArtifact(DefaultP2ResolutionResult result, org.eclipse.equinox.p2.metadata.IInstallableUnit iu, String id, String version, String mavenClassifier, File location)
-
setEnvironments
public void setEnvironments(List<TargetEnvironment> environments)
- Specified by:
setEnvironmentsin interfaceP2Resolver
-
setAdditionalFilterProperties
public void setAdditionalFilterProperties(Map<String,String> additionalFilterProperties)
Description copied from interface:P2ResolverSets additional properties that will be used to evaluate filter expressions in the p2 metadata. These properties are also known as "profile properties" in p2.- Specified by:
setAdditionalFilterPropertiesin interfaceP2Resolver
-
addDependency
public void addDependency(String type, String id, String versionRange) throws IllegalArtifactReferenceException
- Specified by:
addDependencyin interfaceP2Resolver- Throws:
IllegalArtifactReferenceException
-
getAdditionalRequirements
public List<org.eclipse.equinox.p2.metadata.IRequirement> getAdditionalRequirements()
-
resolveInstallableUnit
public P2ResolutionResult resolveInstallableUnit(TargetPlatform targetPlatform, String id, String versionRange)
Description copied from interface:P2ResolverResolves specified installable unit identified by id and versionRange. The unit with latest version is return if id/versionRange match multiple units.- Specified by:
resolveInstallableUnitin interfaceP2Resolver
-
-