public class DefaultReactorProject extends Object implements ReactorProject
CTX_DEPENDENCY_METADATA, CTX_REACTOR_PROJECT, CTX_SECONDARY_DEPENDENCY_METADATA, SOURCE_ARTIFACT_CLASSIFIER
Constructor and Description |
---|
DefaultReactorProject(org.apache.maven.project.MavenProject project) |
Modifier and Type | Method and Description |
---|---|
static ReactorProject |
adapt(org.apache.maven.project.MavenProject project) |
static List<ReactorProject> |
adapt(org.apache.maven.execution.MavenSession session) |
boolean |
equals(Object obj) |
File |
getArtifact()
Returns main project artifact file or null, if the project has not been packaged yet.
|
File |
getArtifact(String artifactClassifier)
returns attached artifact file or null if no such attached artifact.
|
String |
getArtifactId() |
File |
getBasedir() |
BuildOutputDirectory |
getBuildDirectory() |
String |
getBuildQualifier() |
Object |
getContextValue(String key) |
Set<?> |
getDependencyMetadata()
Returns project dependency metadata with both primary and secondary project installable
units.
|
Set<?> |
getDependencyMetadata(boolean primary)
Returns set of p2 IInstallableUnits that describe requirements and provided
capabilities of this project.
|
String |
getExpandedVersion() |
String |
getGroupId() |
String |
getId()
human-readable id used in error messages
|
ReactorProjectIdentities |
getIdentities() |
File |
getOutputDirectory() |
String |
getPackaging() |
File |
getTestOutputDirectory() |
String |
getVersion() |
int |
hashCode() |
boolean |
sameProject(Object otherProject) |
void |
setContextValue(String key,
Object value) |
void |
setDependencyMetadata(boolean primary,
Set<?> installableUnits) |
String |
toString() |
public DefaultReactorProject(org.apache.maven.project.MavenProject project)
public static ReactorProject adapt(org.apache.maven.project.MavenProject project)
public static List<ReactorProject> adapt(org.apache.maven.execution.MavenSession session)
public boolean sameProject(Object otherProject)
sameProject
in interface ReactorProject
public File getBasedir()
getBasedir
in interface ReactorProject
public String getPackaging()
getPackaging
in interface ReactorProject
public String getGroupId()
getGroupId
in interface ReactorProject
public String getArtifactId()
getArtifactId
in interface ReactorProject
public String getVersion()
getVersion
in interface ReactorProject
public ReactorProjectIdentities getIdentities()
getIdentities
in interface ReactorProject
public File getOutputDirectory()
getOutputDirectory
in interface ReactorProject
public BuildOutputDirectory getBuildDirectory()
getBuildDirectory
in interface ReactorProject
public File getTestOutputDirectory()
getTestOutputDirectory
in interface ReactorProject
public File getArtifact()
ReactorProject
getArtifact
in interface ReactorProject
public File getArtifact(String artifactClassifier)
ReactorProject
getArtifact
in interface ReactorProject
public Object getContextValue(String key)
getContextValue
in interface ReactorProject
public void setContextValue(String key, Object value)
setContextValue
in interface ReactorProject
public void setDependencyMetadata(boolean primary, Set<?> installableUnits)
setDependencyMetadata
in interface ReactorProject
public Set<?> getDependencyMetadata()
ReactorProject
getDependencyMetadata
in interface ReactorProject
public Set<?> getDependencyMetadata(boolean primary)
ReactorProject
getDependencyMetadata
in interface ReactorProject
public String getBuildQualifier()
getBuildQualifier
in interface ReactorProject
public String getExpandedVersion()
getExpandedVersion
in interface ReactorProject
public String getId()
ReactorProject
getId
in interface ReactorProject
Copyright © 2008–2020 Eclipse Foundation. All rights reserved.