Package org.eclipse.tycho.p2.tools
Class BuildContext
- java.lang.Object
-
- org.eclipse.tycho.p2.tools.BuildContext
-
public class BuildContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TargetEnvironment>
environments
private ReactorProjectIdentities
project
private java.lang.String
qualifier
-
Constructor Summary
Constructors Constructor Description BuildContext(ReactorProjectIdentities project, java.lang.String qualifier, java.util.List<TargetEnvironment> environments)
Creates a newBuildContext
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TargetEnvironment>
getEnvironments()
Returns the list of configured target environments, or the running environment if no environments have been specified explicitly.ReactorProjectIdentities
getProject()
java.lang.String
getQualifier()
BuildDirectory
getTargetDirectory()
-
-
-
Field Detail
-
project
private final ReactorProjectIdentities project
-
qualifier
private final java.lang.String qualifier
-
environments
private final java.util.List<TargetEnvironment> environments
-
-
Constructor Detail
-
BuildContext
public BuildContext(ReactorProjectIdentities project, java.lang.String qualifier, java.util.List<TargetEnvironment> environments) throws java.lang.IllegalArgumentException
Creates a newBuildContext
instance.- Parameters:
project
- GAV coordinates and build output directory of the current projectqualifier
- The build qualifier of the current projectenvironments
- The list of environments targeted by the build; must contain at least one entry- Throws:
java.lang.IllegalArgumentException
- if no target environment has been specified
-
-
Method Detail
-
getProject
public ReactorProjectIdentities getProject()
- Returns:
- a reference to the current project.
-
getQualifier
public java.lang.String getQualifier()
- Returns:
- the build qualifier of the current project
-
getEnvironments
public java.util.List<TargetEnvironment> getEnvironments()
Returns the list of configured target environments, or the running environment if no environments have been specified explicitly.- Returns:
- the list of
TargetEnvironment
to be addressed; nevernull
or empty
-
getTargetDirectory
public BuildDirectory getTargetDirectory()
- Returns:
- the build output directory of the current project
-
-