Package org.eclipse.tycho.p2.tools
Class BuildContext
- java.lang.Object
-
- org.eclipse.tycho.p2.tools.BuildContext
-
public class BuildContext extends Object
-
-
Constructor Summary
Constructors Constructor Description BuildContext(ReactorProjectIdentities project, String qualifier, List<TargetEnvironment> environments)
Creates a newBuildContext
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TargetEnvironment>
getEnvironments()
Returns the list of configured target environments, or the running environment if no environments have been specified explicitly.ReactorProjectIdentities
getProject()
String
getQualifier()
BuildOutputDirectory
getTargetDirectory()
-
-
-
Constructor Detail
-
BuildContext
public BuildContext(ReactorProjectIdentities project, String qualifier, List<TargetEnvironment> environments) throws 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:
IllegalArgumentException
- if no target environment has been specified
-
-
Method Detail
-
getProject
public ReactorProjectIdentities getProject()
- Returns:
- a reference to the current project.
-
getQualifier
public String getQualifier()
- Returns:
- the build qualifier of the current project
-
getEnvironments
public 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 BuildOutputDirectory getTargetDirectory()
- Returns:
- the build output directory of the current project
-
-