public class BuildContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<TargetEnvironment> |
environments |
private ReactorProjectIdentities |
project |
private java.lang.String |
qualifier |
Constructor and Description |
---|
BuildContext(ReactorProjectIdentities project,
java.lang.String qualifier,
java.util.List<TargetEnvironment> environments)
Creates a new
BuildContext instance. |
Modifier and Type | Method and 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() |
BuildOutputDirectory |
getTargetDirectory() |
private final ReactorProjectIdentities project
private final java.lang.String qualifier
private final java.util.List<TargetEnvironment> environments
public BuildContext(ReactorProjectIdentities project, java.lang.String qualifier, java.util.List<TargetEnvironment> environments) throws java.lang.IllegalArgumentException
BuildContext
instance.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 entryjava.lang.IllegalArgumentException
- if no target environment has been specifiedpublic ReactorProjectIdentities getProject()
public java.lang.String getQualifier()
public java.util.List<TargetEnvironment> getEnvironments()
TargetEnvironment
to be addressed; never null
or
emptypublic BuildOutputDirectory getTargetDirectory()