Interface RunConfig
- All Known Implementing Classes:
BeanRunConfig
,ModelRunConfig
public interface RunConfig
Context provider for maven executors and checkers. Never to be implemented by
client code.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOptions
(Map<String, String> options) Adds options/switches that will be passed to maven.void
addProperties
(Map<String, String> properties) default org.openide.util.Lookup
Provides access to possible additional parameters from the action invoker.directory where the maven build execution happens.getGoals()
goals to be executed.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.org.netbeans.api.project.Project
project that is being used for execution, can be null.Properties to be used in execution.org.openide.filesystems.FileObject
boolean
boolean
boolean
boolean
boolean
void
setActivatedProfiles
(List<String> profiles) void
setExecutionDirectory
(File directory) void
setInternalProperty
(String key, Object value) void
setOffline
(Boolean bool) void
Sets option that will be passed to maven.void
setPreExecution
(RunConfig config) void
setProperty
(String key, String value)
-
Method Details
-
getExecutionDirectory
-
setExecutionDirectory
-
getPreExecution
RunConfig getPreExecution() -
setPreExecution
-
getReactorStyle
RunConfig.ReactorStyle getReactorStyle() -
getProject
org.netbeans.api.project.Project getProject()project that is being used for execution, can be null.- Returns:
-
getMavenProject
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. Can differd from the MavenProject returned from within the Project instance. All Maven model checks shall be done against this instance.- Returns:
-
getGoals
-
getExecutionName
String getExecutionName() -
getTaskDisplayName
String getTaskDisplayName() -
getActionName
String getActionName() -
getOptions
-
setOption
-
addOptions
-
getProperties
-
setProperty
-
addProperties
-
setInternalProperty
-
getInternalProperties
-
isShowDebug
boolean isShowDebug() -
isShowError
boolean isShowError() -
isOffline
Boolean isOffline() -
setOffline
-
isRecursive
boolean isRecursive() -
isUpdateSnapshots
boolean isUpdateSnapshots() -
getActivatedProfiles
-
setActivatedProfiles
-
isInteractive
boolean isInteractive() -
getSelectedFileObject
org.openide.filesystems.FileObject getSelectedFileObject() -
getActionContext
default org.openide.util.Lookup getActionContext()Provides access to possible additional parameters from the action invoker. Must not returnnull
, useLookup.EMPTY
for empty instance.- Returns:
- action context Lookup
- Since:
- 2.144
-