public class BuildContext extends Object
Constructor and Description |
---|
BuildContext(ReactorProjectIdentities project,
String qualifier,
List<TargetEnvironment> environments)
Creates a new
BuildContext instance. |
Modifier and Type | Method and 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() |
public BuildContext(ReactorProjectIdentities project, String qualifier, List<TargetEnvironment> environments) throws 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 entryIllegalArgumentException
- if no target environment has been specifiedpublic ReactorProjectIdentities getProject()
public String getQualifier()
public List<TargetEnvironment> getEnvironments()
TargetEnvironment
to be addressed; never null
or
emptypublic BuildOutputDirectory getTargetDirectory()
Copyright © 2008–2017 Eclipse Foundation. All rights reserved.