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>environmentsprivate ReactorProjectIdentitiesprojectprivate java.lang.Stringqualifier
-
Constructor Summary
Constructors Constructor Description BuildContext(ReactorProjectIdentities project, java.lang.String qualifier, java.util.List<TargetEnvironment> environments)Creates a newBuildContextinstance.
-
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.ReactorProjectIdentitiesgetProject()java.lang.StringgetQualifier()BuildOutputDirectorygetTargetDirectory()
-
-
-
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 newBuildContextinstance.- 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
TargetEnvironmentto be addressed; nevernullor empty
-
getTargetDirectory
public BuildOutputDirectory getTargetDirectory()
- Returns:
- the build output directory of the current project
-
-