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()
RunConfignull, use Lookup.EMPTY for empty instance.getActionContext in interface RunConfigpublic void setActionContext(Lookup actionContext)
public void reassignMavenProjectFromParent()
public final File getExecutionDirectory()
RunConfiggetExecutionDirectory in interface RunConfigpublic final void setExecutionDirectory(File executionDirectory)
setExecutionDirectory in interface RunConfigpublic final Project getProject()
RunConfiggetProject in interface RunConfigpublic final org.apache.maven.project.MavenProject getMavenProject()
RunConfiggetMavenProject in interface RunConfigpublic final void setProject(Project project)
public final List<String> getGoals()
RunConfigpublic final String getExecutionName()
getExecutionName in interface RunConfigpublic final void setExecutionName(String executionName)
public final Map<? extends String,? extends String> getProperties()
RunConfiggetProperties in interface RunConfigpublic final void setProperty(@NonNull String key, @NullAllowed String value)
setProperty in interface RunConfigpublic final Map<? extends String,? extends Object> getInternalProperties()
getInternalProperties in interface RunConfigpublic final void setInternalProperty(@NonNull String key, @NullAllowed Object value)
setInternalProperty in interface RunConfigpublic final void addProperties(Map<String,String> props)
addProperties in interface RunConfigpublic final boolean isShowDebug()
isShowDebug in interface RunConfigpublic final void setShowDebug(boolean showDebug)
public final boolean isShowError()
isShowError in interface RunConfigpublic final void setShowError(boolean showError)
public final void setOffline(Boolean offline)
setOffline in interface RunConfigpublic final List<String> getActivatedProfiles()
getActivatedProfiles in interface RunConfigpublic final void setActivatedProfiles(List<String> activeteProfiles)
setActivatedProfiles in interface RunConfigpublic final boolean isRecursive()
isRecursive in interface RunConfigpublic final void setRecursive(boolean rec)
public final boolean isUpdateSnapshots()
isUpdateSnapshots in interface RunConfigpublic final void setUpdateSnapshots(boolean set)
public final String getTaskDisplayName()
getTaskDisplayName in interface RunConfigpublic final void setTaskDisplayName(String name)
public final boolean isInteractive()
isInteractive in interface RunConfigpublic final void setInteractive(boolean ia)
public void setActionName(String actionName)
public String getActionName()
getActionName in interface RunConfigpublic FileObject getSelectedFileObject()
getSelectedFileObject in interface RunConfigpublic void setFileObject(FileObject selectedFile)
public RunConfig getPreExecution()
getPreExecution in interface RunConfigpublic void setPreExecution(RunConfig config)
setPreExecution in interface RunConfigpublic final RunConfig.ReactorStyle getReactorStyle()
getReactorStyle in interface RunConfigpublic final void setReactorStyle(RunConfig.ReactorStyle style)