public class BeanRunConfig extends Object implements RunConfig
RunConfig.ReactorStyle
Constructor and Description |
---|
BeanRunConfig()
Creates a new instance of BeanRunConfig
|
BeanRunConfig(RunConfig parent)
create a new instance that wraps around the parent instance, allowing
to change values while delegating to originals if not changed.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperties(Map<String,String> props) |
Lookup |
getActionContext()
Provides access to possible additional parameters from the action invoker.
|
String |
getActionName() |
List<String> |
getActivatedProfiles() |
File |
getExecutionDirectory()
directory where the maven build execution happens.
|
String |
getExecutionName() |
List<String> |
getGoals()
goals to be executed.
|
Map<? extends String,? extends Object> |
getInternalProperties() |
org.apache.maven.project.MavenProject |
getMavenProject()
the maven project instance loaded with the context of execution,
with execution's profiles enabled and execution properties injected.
|
RunConfig |
getPreExecution() |
Project |
getProject()
project that is being used for execution, can be null.
|
Map<? extends String,? extends String> |
getProperties()
Properties to be used in execution.
|
RunConfig.ReactorStyle |
getReactorStyle() |
FileObject |
getSelectedFileObject() |
String |
getTaskDisplayName() |
boolean |
isInteractive() |
Boolean |
isOffline() |
boolean |
isRecursive() |
boolean |
isShowDebug() |
boolean |
isShowError() |
boolean |
isUpdateSnapshots() |
void |
reassignMavenProjectFromParent() |
void |
setActionContext(Lookup actionContext) |
void |
setActionName(String actionName) |
void |
setActivatedProfiles(List<String> activeteProfiles) |
void |
setExecutionDirectory(File executionDirectory) |
void |
setExecutionName(String executionName) |
void |
setFileObject(FileObject selectedFile) |
void |
setGoals(List<String> goals) |
void |
setInteractive(boolean ia) |
void |
setInternalProperty(String key,
Object value) |
void |
setOffline(Boolean offline) |
void |
setPreExecution(RunConfig config) |
void |
setProject(Project project) |
void |
setProperty(String key,
String value) |
void |
setReactorStyle(RunConfig.ReactorStyle style) |
void |
setRecursive(boolean rec) |
void |
setShowDebug(boolean showDebug) |
void |
setShowError(boolean showError) |
void |
setTaskDisplayName(String name) |
void |
setUpdateSnapshots(boolean set) |
public BeanRunConfig()
public BeanRunConfig(RunConfig parent)
parent
- public Lookup getActionContext()
RunConfig
null
, use Lookup.EMPTY
for empty instance.getActionContext
in interface RunConfig
public void setActionContext(Lookup actionContext)
public void reassignMavenProjectFromParent()
public final File getExecutionDirectory()
RunConfig
getExecutionDirectory
in interface RunConfig
public final void setExecutionDirectory(File executionDirectory)
setExecutionDirectory
in interface RunConfig
public final Project getProject()
RunConfig
getProject
in interface RunConfig
public final org.apache.maven.project.MavenProject getMavenProject()
RunConfig
getMavenProject
in interface RunConfig
public final void setProject(Project project)
public final List<String> getGoals()
RunConfig
public final String getExecutionName()
getExecutionName
in interface RunConfig
public final void setExecutionName(String executionName)
public final Map<? extends String,? extends String> getProperties()
RunConfig
getProperties
in interface RunConfig
public final void setProperty(@NonNull String key, @NullAllowed String value)
setProperty
in interface RunConfig
public final Map<? extends String,? extends Object> getInternalProperties()
getInternalProperties
in interface RunConfig
public final void setInternalProperty(@NonNull String key, @NullAllowed Object value)
setInternalProperty
in interface RunConfig
public final void addProperties(Map<String,String> props)
addProperties
in interface RunConfig
public final boolean isShowDebug()
isShowDebug
in interface RunConfig
public final void setShowDebug(boolean showDebug)
public final boolean isShowError()
isShowError
in interface RunConfig
public final void setShowError(boolean showError)
public final void setOffline(Boolean offline)
setOffline
in interface RunConfig
public final List<String> getActivatedProfiles()
getActivatedProfiles
in interface RunConfig
public final void setActivatedProfiles(List<String> activeteProfiles)
setActivatedProfiles
in interface RunConfig
public final boolean isRecursive()
isRecursive
in interface RunConfig
public final void setRecursive(boolean rec)
public final boolean isUpdateSnapshots()
isUpdateSnapshots
in interface RunConfig
public final void setUpdateSnapshots(boolean set)
public final String getTaskDisplayName()
getTaskDisplayName
in interface RunConfig
public final void setTaskDisplayName(String name)
public final boolean isInteractive()
isInteractive
in interface RunConfig
public final void setInteractive(boolean ia)
public void setActionName(String actionName)
public String getActionName()
getActionName
in interface RunConfig
public FileObject getSelectedFileObject()
getSelectedFileObject
in interface RunConfig
public void setFileObject(FileObject selectedFile)
public RunConfig getPreExecution()
getPreExecution
in interface RunConfig
public void setPreExecution(RunConfig config)
setPreExecution
in interface RunConfig
public final RunConfig.ReactorStyle getReactorStyle()
getReactorStyle
in interface RunConfig
public final void setReactorStyle(RunConfig.ReactorStyle style)