org.scala_tools.maven.executions
Class AbstractForkedJavaCommand
java.lang.Object
org.scala_tools.maven.executions.AbstractJavaMainCaller
org.scala_tools.maven.executions.AbstractForkedJavaCommand
- All Implemented Interfaces:
- JavaMainCaller
- Direct Known Subclasses:
- JavaCommand, ScalaCommandWIthArgsInFile
public abstract class AbstractForkedJavaCommand
- extends AbstractJavaMainCaller
Abstract "process builder" object for forked java commands.
- Author:
- J. Suereth
Method Summary |
protected abstract String[] |
buildCommand()
|
void |
run(boolean displayCmd,
boolean throwFailure)
Runs the JavaMain with all the built up arguments/options |
void |
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 |
javaExec
protected String javaExec
- Location of java executable.
AbstractForkedJavaCommand
public AbstractForkedJavaCommand(org.apache.maven.plugin.AbstractMojo requester,
String mainClassName,
String classpath,
String[] jvmArgs,
String[] args)
throws Exception
- Throws:
Exception
buildCommand
protected abstract String[] buildCommand()
throws Exception
- Throws:
Exception
run
public void 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 void spawn(boolean displayCmd)
throws Exception
- Description copied from interface:
JavaMainCaller
- run the command without stream redirection nor waiting for exit
- Throws:
Exception
Copyright © 2009-2010 Scala Tools. All Rights Reserved.