Class BeanRunConfig
java.lang.Object
org.netbeans.modules.maven.execute.BeanRunConfig
- All Implemented Interfaces:
RunConfig
- Direct Known Subclasses:
ModelRunConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.netbeans.modules.maven.api.execute.RunConfig
RunConfig.ReactorStyle
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of BeanRunConfigBeanRunConfig
(RunConfig parent) create a new instance that wraps around the parent instance, allowing to change values while delegating to originals if not changed. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOptions
(Map<String, String> args) Adds options/switches that will be passed to maven.final void
addProperties
(Map<String, String> props) org.openide.util.Lookup
Provides access to possible additional parameters from the action invoker.final File
directory where the maven build execution happens.final String
getGoals()
goals to be executed.final org.apache.maven.project.MavenProject
the maven project instance loaded with the context of execution, with execution's profiles enabled and execution properties injected.Options/switches passed to maven.final org.netbeans.api.project.Project
project that is being used for execution, can be null.Properties to be used in execution.final RunConfig.ReactorStyle
org.openide.filesystems.FileObject
final String
final boolean
final Boolean
final boolean
final boolean
final boolean
final boolean
void
void
setActionContext
(org.openide.util.Lookup actionContext) void
setActionName
(String actionName) final void
setActivatedProfiles
(List<String> activeteProfiles) final void
setExecutionDirectory
(File executionDirectory) final void
setExecutionName
(String executionName) void
setFileObject
(org.openide.filesystems.FileObject selectedFile) final void
final void
setInteractive
(boolean ia) final void
setInternalProperty
(String key, Object value) final void
setOffline
(Boolean offline) void
Sets option that will be passed to maven.void
setPreExecution
(RunConfig config) final void
setProject
(org.netbeans.api.project.Project project) final void
setProperty
(String key, String value) final void
final void
setRecursive
(boolean rec) final void
setShowDebug
(boolean showDebug) final void
setShowError
(boolean showError) final void
setTaskDisplayName
(String name) final void
setUpdateSnapshots
(boolean set)
-
Constructor Details
-
BeanRunConfig
public BeanRunConfig()Creates a new instance of BeanRunConfig -
BeanRunConfig
create a new instance that wraps around the parent instance, allowing to change values while delegating to originals if not changed.- Parameters:
parent
-
-
-
Method Details
-
getActionContext
public org.openide.util.Lookup getActionContext()Description copied from interface:RunConfig
Provides access to possible additional parameters from the action invoker. Must not returnnull
, useLookup.EMPTY
for empty instance.- Specified by:
getActionContext
in interfaceRunConfig
- Returns:
- action context Lookup
-
setActionContext
public void setActionContext(org.openide.util.Lookup actionContext) -
reassignMavenProjectFromParent
public void reassignMavenProjectFromParent() -
getExecutionDirectory
Description copied from interface:RunConfig
directory where the maven build execution happens.- Specified by:
getExecutionDirectory
in interfaceRunConfig
- Returns:
-
setExecutionDirectory
- Specified by:
setExecutionDirectory
in interfaceRunConfig
-
getProject
public final org.netbeans.api.project.Project getProject()Description copied from interface:RunConfig
project that is being used for execution, can be null.- Specified by:
getProject
in interfaceRunConfig
- Returns:
-
getMavenProject
public final org.apache.maven.project.MavenProject getMavenProject()Description copied from interface:RunConfig
the maven project instance loaded with the context of execution, with execution's profiles enabled and execution properties injected. Can differd from the MavenProject returned from within the Project instance. All Maven model checks shall be done against this instance.- Specified by:
getMavenProject
in interfaceRunConfig
- Returns:
-
setProject
public final void setProject(org.netbeans.api.project.Project project) -
getGoals
-
setGoals
-
getExecutionName
- Specified by:
getExecutionName
in interfaceRunConfig
-
setExecutionName
-
getProperties
-
setProperty
- Specified by:
setProperty
in interfaceRunConfig
-
getInternalProperties
- Specified by:
getInternalProperties
in interfaceRunConfig
-
setInternalProperty
- Specified by:
setInternalProperty
in interfaceRunConfig
-
addProperties
- Specified by:
addProperties
in interfaceRunConfig
-
isShowDebug
public final boolean isShowDebug()- Specified by:
isShowDebug
in interfaceRunConfig
-
setShowDebug
public final void setShowDebug(boolean showDebug) -
isShowError
public final boolean isShowError()- Specified by:
isShowError
in interfaceRunConfig
-
setShowError
public final void setShowError(boolean showError) -
isOffline
-
setOffline
- Specified by:
setOffline
in interfaceRunConfig
-
getActivatedProfiles
- Specified by:
getActivatedProfiles
in interfaceRunConfig
-
setActivatedProfiles
- Specified by:
setActivatedProfiles
in interfaceRunConfig
-
isRecursive
public final boolean isRecursive()- Specified by:
isRecursive
in interfaceRunConfig
-
setRecursive
public final void setRecursive(boolean rec) -
isUpdateSnapshots
public final boolean isUpdateSnapshots()- Specified by:
isUpdateSnapshots
in interfaceRunConfig
-
setUpdateSnapshots
public final void setUpdateSnapshots(boolean set) -
getTaskDisplayName
- Specified by:
getTaskDisplayName
in interfaceRunConfig
-
setTaskDisplayName
-
isInteractive
public final boolean isInteractive()- Specified by:
isInteractive
in interfaceRunConfig
-
setInteractive
public final void setInteractive(boolean ia) -
setActionName
-
getActionName
- Specified by:
getActionName
in interfaceRunConfig
-
getSelectedFileObject
public org.openide.filesystems.FileObject getSelectedFileObject()- Specified by:
getSelectedFileObject
in interfaceRunConfig
-
setFileObject
public void setFileObject(org.openide.filesystems.FileObject selectedFile) -
getPreExecution
- Specified by:
getPreExecution
in interfaceRunConfig
-
setPreExecution
- Specified by:
setPreExecution
in interfaceRunConfig
-
getReactorStyle
- Specified by:
getReactorStyle
in interfaceRunConfig
-
setReactorStyle
-
getOptions
-
setOption
-
addOptions
-