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 void
addDependency(String type, String id, String versionRange)
protected void
addMavenArtifact(DefaultP2ResolutionResult result, org.eclipse.equinox.p2.metadata.IInstallableUnit iu, String id, String version, String mavenClassifier, File location)
P2ResolutionResult
collectProjectDependencies(TargetPlatform targetPlatform, ReactorProject project)
List<org.eclipse.equinox.p2.metadata.IRequirement>
getAdditionalRequirements()
P2ResolutionResult
getTargetPlatformAsResolutionResult(TargetPlatformConfigurationStub tpConfiguration, String eeName)
protected P2ResolutionResult
resolveDependencies(ReactorProject project, AbstractResolutionStrategy strategy, TargetEnvironment environment)
P2ResolutionResult
resolveInstallableUnit(TargetPlatform targetPlatform, String id, String versionRange)
Resolves specified installable unit identified by id and versionRange.P2ResolutionResult
resolveMetadata(TargetPlatformConfigurationStub tpConfiguration, String eeName)
Map<TargetEnvironment,P2ResolutionResult>
resolveTargetDependencies(TargetPlatform targetPlatform, ReactorProject project)
Returns list ordered of resolution result, one per requested TargetEnvironment.void
setAdditionalFilterProperties(Map<String,String> additionalFilterProperties)
Sets additional properties that will be used to evaluate filter expressions in the p2 metadata.void
setEnvironments(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:P2Resolver
Returns list ordered of resolution result, one per requested TargetEnvironment.- Specified by:
resolveTargetDependencies
in interfaceP2Resolver
project
- 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:
collectProjectDependencies
in interfaceP2Resolver
-
resolveMetadata
public P2ResolutionResult resolveMetadata(TargetPlatformConfigurationStub tpConfiguration, String eeName)
- Specified by:
resolveMetadata
in interfaceP2Resolver
-
getTargetPlatformAsResolutionResult
public P2ResolutionResult getTargetPlatformAsResolutionResult(TargetPlatformConfigurationStub tpConfiguration, String eeName)
- Specified by:
getTargetPlatformAsResolutionResult
in 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:
setEnvironments
in interfaceP2Resolver
-
setAdditionalFilterProperties
public void setAdditionalFilterProperties(Map<String,String> additionalFilterProperties)
Description copied from interface:P2Resolver
Sets 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:
setAdditionalFilterProperties
in interfaceP2Resolver
-
addDependency
public void addDependency(String type, String id, String versionRange) throws IllegalArtifactReferenceException
- Specified by:
addDependency
in 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:P2Resolver
Resolves specified installable unit identified by id and versionRange. The unit with latest version is return if id/versionRange match multiple units.- Specified by:
resolveInstallableUnit
in interfaceP2Resolver
-
-