org_scala_tools_maven_executions
Class JavaMainCallerByFork
java.lang.Object
org_scala_tools_maven_executions.JavaMainCallerSupport
org_scala_tools_maven_executions.JavaMainCallerByFork
- All Implemented Interfaces:
- JavaMainCaller
public class JavaMainCallerByFork
- extends JavaMainCallerSupport
forked java commands.
- Author:
- D. Bernard, J. Suereth
Method Summary |
protected List<String> |
buildCommand()
|
void |
redirectToLog()
request run to be redirected to maven/requester logger |
boolean |
run(boolean displayCmd,
boolean throwFailure)
Runs the JavaMain with all the built up arguments/options |
SpawnMonitor |
spawn(boolean displayCmd)
run the command without stream redirection nor waiting for exit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaMainCallerByFork
public JavaMainCallerByFork(org.apache.maven.plugin.AbstractMojo requester,
String mainClassName,
String classpath,
String[] jvmArgs,
String[] args,
boolean forceUseArgFile)
throws Exception
- Throws:
Exception
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
buildCommand
protected List<String> buildCommand()
throws Exception
- Throws:
Exception
redirectToLog
public void redirectToLog()
- Description copied from interface:
JavaMainCaller
- request run to be redirected to maven/requester logger
Copyright © 2010-2011 Scala Tools. All Rights Reserved.