Package org.eclipse.tycho.core.resolver
Class DefaultTargetPlatformConfigurationReader
- java.lang.Object
-
- org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader
-
@Component(role=DefaultTargetPlatformConfigurationReader.class) public class DefaultTargetPlatformConfigurationReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private TargetPlatformFilterConfigurationReader
filterReader
private org.codehaus.plexus.logging.Logger
logger
private static java.lang.String
OPTIONAL_RESOLUTION_IGNORE
private static java.lang.String
OPTIONAL_RESOLUTION_REQUIRE
private java.util.Map<java.lang.String,TychoProject>
projectTypes
private org.apache.maven.repository.RepositorySystem
repositorySystem
-
Constructor Summary
Constructors Constructor Description DefaultTargetPlatformConfigurationReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addTargetArtifact(TargetPlatformConfiguration result, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom artifactDom)
private void
addTargetEnvironments(TargetPlatformConfiguration result, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
protected TargetEnvironment
getDeprecatedTargetEnvironment(org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private static java.lang.String
getStringValue(org.codehaus.plexus.util.xml.Xpp3Dom element)
Returns the string value of the given node, with all "value not set" cases normalized tonull
.TargetPlatformConfiguration
getTargetPlatformConfiguration(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project)
private static TargetEnvironment
newTargetEnvironment(org.codehaus.plexus.util.xml.Xpp3Dom environmentDom)
private void
readDependencyResolutionConfiguration(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
protected void
readExtraRequirements(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
private void
readFilters(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
readProfileProperties(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
private void
setAllowConflictingDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setBREEHeaderSelectionPolicy(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setDisableP2Mirrors(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setExecutionEnvironment(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setExecutionEnvironmentDefault(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setIncludePackedArtifacts(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setOptionalDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
private void
setPomDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setResolveWithEEContraints(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
Take the constraints of the configured execution environment into account when resolving dependencies or target definitions.private void
setTarget(TargetPlatformConfiguration result, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setTargetDefinitionIncludeSources(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
private void
setTargetPlatformResolver(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
-
-
Field Detail
-
OPTIONAL_RESOLUTION_REQUIRE
private static final java.lang.String OPTIONAL_RESOLUTION_REQUIRE
- See Also:
- Constant Field Values
-
OPTIONAL_RESOLUTION_IGNORE
private static final java.lang.String OPTIONAL_RESOLUTION_IGNORE
- See Also:
- Constant Field Values
-
logger
@Requirement private org.codehaus.plexus.logging.Logger logger
-
repositorySystem
@Requirement private org.apache.maven.repository.RepositorySystem repositorySystem
-
projectTypes
@Requirement private java.util.Map<java.lang.String,TychoProject> projectTypes
-
filterReader
@Requirement private TargetPlatformFilterConfigurationReader filterReader
-
-
Method Detail
-
getTargetPlatformConfiguration
public TargetPlatformConfiguration getTargetPlatformConfiguration(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project) throws BuildFailureException
- Throws:
BuildFailureException
-
setIncludePackedArtifacts
private void setIncludePackedArtifacts(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setTargetDefinitionIncludeSources
private void setTargetDefinitionIncludeSources(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration) throws BuildFailureException
- Throws:
BuildFailureException
-
readDependencyResolutionConfiguration
private void readDependencyResolutionConfiguration(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setOptionalDependencies
private void setOptionalDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
-
readExtraRequirements
protected void readExtraRequirements(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom) throws BuildFailureException
- Throws:
BuildFailureException
-
readProfileProperties
private void readProfileProperties(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
-
setExecutionEnvironment
private void setExecutionEnvironment(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setExecutionEnvironmentDefault
private void setExecutionEnvironmentDefault(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setBREEHeaderSelectionPolicy
private void setBREEHeaderSelectionPolicy(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setResolveWithEEContraints
private void setResolveWithEEContraints(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom resolverDom)
Take the constraints of the configured execution environment into account when resolving dependencies or target definitions. These constraints include the list of system packages and the Bundle-RequiredExecutionEnvironment header. When set totrue
, the dependency resolution verifies that the bundle and all required bundles can be used in an OSGi container with the configured execution environment.
-
setDisableP2Mirrors
private void setDisableP2Mirrors(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setAllowConflictingDependencies
private void setAllowConflictingDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
addTargetEnvironments
private void addTargetEnvironments(TargetPlatformConfiguration result, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
getDeprecatedTargetEnvironment
protected TargetEnvironment getDeprecatedTargetEnvironment(org.codehaus.plexus.util.xml.Xpp3Dom configuration) throws TargetPlatformConfigurationException
-
setPomDependencies
private void setPomDependencies(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
setTarget
private void setTarget(TargetPlatformConfiguration result, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
addTargetArtifact
protected void addTargetArtifact(TargetPlatformConfiguration result, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.codehaus.plexus.util.xml.Xpp3Dom artifactDom)
-
setTargetPlatformResolver
private void setTargetPlatformResolver(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
readFilters
private void readFilters(TargetPlatformConfiguration result, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
-
newTargetEnvironment
private static TargetEnvironment newTargetEnvironment(org.codehaus.plexus.util.xml.Xpp3Dom environmentDom) throws TargetPlatformConfigurationException
-
getStringValue
private static java.lang.String getStringValue(org.codehaus.plexus.util.xml.Xpp3Dom element)
Returns the string value of the given node, with all "value not set" cases normalized tonull
.
-
-