Package scala_maven_executions
Class JavaMainCallerByFork
java.lang.Object
scala_maven_executions.JavaMainCallerSupport
scala_maven_executions.JavaMainCallerByFork
- All Implemented Interfaces:
JavaMainCaller
forked java commands.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private String
Location of java executable.private boolean
Fields inherited from class scala_maven_executions.JavaMainCallerSupport
args, env, jvmArgs, mainClassName, requester
-
Constructor Summary
ConstructorsConstructorDescriptionJavaMainCallerByFork
(org.apache.maven.plugin.AbstractMojo requester1, String mainClassName1, String classpath, String[] jvmArgs1, String[] args1, boolean forceUseArgFile, org.apache.maven.toolchain.Toolchain toolchain) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
displayCmd
(boolean displayCmd, List<String> cmd) private long
void
request run to be redirected to maven/requester loggerboolean
run
(boolean displayCmd, boolean throwFailure) Runs the JavaMain with all the built up arguments/optionsspawn
(boolean displayCmd) run the command without stream redirection nor waiting for exitprivate void
tryDeleteArgFile
(List<String> cmd) Methods inherited from class scala_maven_executions.JavaMainCallerSupport
addArgs, addEnvVar, addJvmArgs, addOption, addOption, addOption, addToClasspath, run
-
Field Details
-
_forceUseArgFile
private boolean _forceUseArgFile -
_javaExec
Location of java executable. -
_redirectToLog
private boolean _redirectToLog
-
-
Constructor Details
-
Method Details
-
run
Description copied from interface:JavaMainCaller
Runs the JavaMain with all the built up arguments/options- Throws:
Exception
-
spawn
Description copied from interface:JavaMainCaller
run the command without stream redirection nor waiting for exit- Parameters:
displayCmd
-- Returns:
- the spawn Process (or null if no process was spawned)
- Throws:
Exception
-
displayCmd
-
buildCommand
- Throws:
Exception
-
tryDeleteArgFile
- Throws:
Exception
-
lengthOf
- Throws:
Exception
-
redirectToLog
public void redirectToLog()Description copied from interface:JavaMainCaller
request run to be redirected to maven/requester logger
-