org.eclipse.tycho
Interface ReactorProject

All Superinterfaces:
ReactorProjectCoordinates

public interface ReactorProject
extends ReactorProjectCoordinates


Field Summary
static String CTX_DEPENDENCY_METADATA
          Conventional key used to store dependency metadata in MavenProject.context
static String CTX_REACTOR_PROJECT
          Conventional key used to store ReactorProject in MavenProject.context
static String CTX_SECONDARY_DEPENDENCY_METADATA
          Conventional key used to store secondary dependency metadata in MavenProject.context
static String SOURCE_ARTIFACT_CLASSIFIER
          Conventional sources jar Maven artifact classifier.
 
Method Summary
 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()
           
 Object getContextValue(String key)
           
 Map<String,Set<Object>> getDependencyMetadata()
          Returns project dependency metadata.
 Set<Object> getDependencyMetadata(String classifier, boolean primary)
          Returns live set of P2 IInstallableUnit's that describe requirements and provided capabilities of this project used during project dependency resolution for the specified classifier.
 String getExpandedVersion()
          Per-classifier project P2 metadata.
 String getGroupId()
           
 String getId()
          human-readable id used in error messages
 File getOutputDirectory()
           
 String getPackaging()
           
 File getTestOutputDirectory()
           
 String getVersion()
           
 boolean sameProject(Object otherProject)
           
 void setContextValue(String key, Object value)
           
 void setDependencyMetadata(String classifier, boolean primary, Set<Object> installableUnits)
          Returns live set of Manve artifact classifiers that have been (or will be) attached to the project during the build.
 void setExpandedVersion(String originalVersion, String qualifier)
           
 

Field Detail

CTX_REACTOR_PROJECT

static final String CTX_REACTOR_PROJECT
Conventional key used to store ReactorProject in MavenProject.context

See Also:
Constant Field Values

CTX_DEPENDENCY_METADATA

static final String CTX_DEPENDENCY_METADATA
Conventional key used to store dependency metadata in MavenProject.context

See Also:
Constant Field Values

CTX_SECONDARY_DEPENDENCY_METADATA

static final String CTX_SECONDARY_DEPENDENCY_METADATA
Conventional key used to store secondary dependency metadata in MavenProject.context

See Also:
Constant Field Values

SOURCE_ARTIFACT_CLASSIFIER

static final String SOURCE_ARTIFACT_CLASSIFIER
Conventional sources jar Maven artifact classifier.

See Also:
Constant Field Values
Method Detail

getBasedir

File getBasedir()

getPackaging

String getPackaging()

getGroupId

String getGroupId()
Specified by:
getGroupId in interface ReactorProjectCoordinates

getArtifactId

String getArtifactId()
Specified by:
getArtifactId in interface ReactorProjectCoordinates

getVersion

String getVersion()
Specified by:
getVersion in interface ReactorProjectCoordinates

getOutputDirectory

File getOutputDirectory()

getBuildDirectory

BuildOutputDirectory getBuildDirectory()
Specified by:
getBuildDirectory in interface ReactorProjectCoordinates

getTestOutputDirectory

File getTestOutputDirectory()

getArtifact

File getArtifact()
Returns main project artifact file or null, if the project has not been packaged yet.


getArtifact

File getArtifact(String artifactClassifier)
returns attached artifact file or null if no such attached artifact.


getContextValue

Object getContextValue(String key)

setContextValue

void setContextValue(String key,
                     Object value)

setDependencyMetadata

void setDependencyMetadata(String classifier,
                           boolean primary,
                           Set<Object> installableUnits)
Returns live set of Manve artifact classifiers that have been (or will be) attached to the project during the build. Main project artifact classifier is always null and is NOT included in the returned set.


getDependencyMetadata

Set<Object> getDependencyMetadata(String classifier,
                                  boolean primary)
Returns live set of P2 IInstallableUnit's that describe requirements and provided capabilities of this project used during project dependency resolution for the specified classifier.


getDependencyMetadata

Map<String,Set<Object>> getDependencyMetadata()
Returns project dependency metadata.

Returned map is keyed by project attached artifact classifier, where null represents main the project artifact. Map values are sets of both primary and secondary project installable units.


getExpandedVersion

String getExpandedVersion()
Per-classifier project P2 metadata. This is complete P2 metadata, as generated by P2 publisher application (or equivalent).


setExpandedVersion

void setExpandedVersion(String originalVersion,
                        String qualifier)

getId

String getId()
human-readable id used in error messages


sameProject

boolean sameProject(Object otherProject)


Copyright © 2008-2013 Eclipse Foundation. All Rights Reserved.