Package scala_maven_executions
Class JavaMainCallerByFork
- java.lang.Object
-
- scala_maven_executions.JavaMainCallerSupport
-
- scala_maven_executions.JavaMainCallerByFork
-
- All Implemented Interfaces:
JavaMainCaller
public class JavaMainCallerByFork extends JavaMainCallerSupport
forked java commands.- Author:
- D. Bernard, J. Suereth
-
-
Field Summary
-
Fields inherited from class scala_maven_executions.JavaMainCallerSupport
args, env, jvmArgs, mainClassName, requester
-
-
Constructor Summary
Constructors Constructor Description JavaMainCallerByFork(org.apache.maven.plugin.AbstractMojo requester1, String mainClassName1, String classpath, String[] jvmArgs1, String[] args1, boolean forceUseArgFile, org.apache.maven.toolchain.Toolchain toolchain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
buildCommand()
void
redirectToLog()
request run to be redirected to maven/requester loggerboolean
run(boolean displayCmd, boolean throwFailure)
Runs the JavaMain with all the built up arguments/optionsSpawnMonitor
spawn(boolean displayCmd)
run the command without stream redirection nor waiting for exit-
Methods inherited from class scala_maven_executions.JavaMainCallerSupport
addArgs, addEnvVar, addJvmArgs, addOption, addOption, addOption, addToClasspath, run
-
-
-
-
Method Detail
-
run
public boolean run(boolean displayCmd, boolean throwFailure) throws Exception
Description copied from interface:JavaMainCaller
Runs the JavaMain with all the built up arguments/options- Throws:
Exception
-
spawn
public SpawnMonitor spawn(boolean displayCmd) throws Exception
Description copied from interface:JavaMainCaller
run the command without stream redirection nor waiting for exit- Returns:
- the spawn Process (or null if no process was spawned)
- Throws:
Exception
-
redirectToLog
public void redirectToLog()
Description copied from interface:JavaMainCaller
request run to be redirected to maven/requester logger
-
-