public final class RunUtils extends Object
Modifier and Type | Method and Description |
---|---|
static RunConfig |
cloneRunConfig(RunConfig original)
return a new instance of runconfig by the template passed as parameter
|
static RunConfig |
createRunConfig(File execDir,
Project prj,
String displayName,
List<String> goals) |
static ExecutorTask |
executeMaven(RunConfig config)
Execute maven build in NetBeans execution engine.
|
static boolean |
hasApplicationCompileOnSaveEnabled(Project prj)
Deprecated.
|
static boolean |
hasApplicationCompileOnSaveEnabled(RunConfig config)
Deprecated.
|
static boolean |
hasTestCompileOnSaveEnabled(Project prj)
Deprecated.
|
static boolean |
hasTestCompileOnSaveEnabled(RunConfig config)
Deprecated.
|
static boolean |
isCompileOnSaveEnabled(Project prj) |
static boolean |
isCompileOnSaveEnabled(RunConfig config) |
static ExecutorTask |
run(RunConfig config)
Runs Maven after checking prerequisites.
|
@CheckForNull public static ExecutorTask run(RunConfig config)
config
- a run configuration (try RunUtils.createRunConfig(java.io.File, org.netbeans.api.project.Project, java.lang.String, java.util.List<java.lang.String>)
)RunUtils.executeMaven(org.netbeans.modules.maven.api.execute.RunConfig)
,
PrerequisitesChecker
public static ExecutorTask executeMaven(RunConfig config)
RunUtils.run(org.netbeans.modules.maven.api.execute.RunConfig)
as this variant does no (non-late-bound) prerequisite checks.
It is mostly suitable for cases where you need full control by the caller over the config, or want to rerun a previous execution.config
- public static RunConfig createRunConfig(File execDir, Project prj, String displayName, List<String> goals)
public static RunConfig cloneRunConfig(RunConfig original)
original
- public static boolean isCompileOnSaveEnabled(Project prj)
public static boolean isCompileOnSaveEnabled(RunConfig config)
@Deprecated public static boolean hasApplicationCompileOnSaveEnabled(Project prj)
project
- @Deprecated public static boolean hasApplicationCompileOnSaveEnabled(RunConfig config)
config
- @Deprecated public static boolean hasTestCompileOnSaveEnabled(Project prj)
project
- @Deprecated public static boolean hasTestCompileOnSaveEnabled(RunConfig config)
config
-