org.scala_tools.maven.executions
Class AbstractForkedJavaCommand

java.lang.Object
  extended by org.scala_tools.maven.executions.AbstractJavaMainCaller
      extended by 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

Field Summary
protected  String javaExec
          Location of java executable.
 
Fields inherited from class org.scala_tools.maven.executions.AbstractJavaMainCaller
args, env, jvmArgs, logOnly, mainClassName, requester
 
Constructor Summary
AbstractForkedJavaCommand(org.apache.maven.plugin.AbstractMojo requester, String mainClassName, String classpath, String[] jvmArgs, String[] args)
           
 
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 org.scala_tools.maven.executions.AbstractJavaMainCaller
addArgs, addEnvVar, addJvmArgs, addOption, addOption, addOption, addToClasspath, getLogOnly, run, setLogOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaExec

protected String javaExec
Location of java executable.

Constructor Detail

AbstractForkedJavaCommand

public AbstractForkedJavaCommand(org.apache.maven.plugin.AbstractMojo requester,
                                 String mainClassName,
                                 String classpath,
                                 String[] jvmArgs,
                                 String[] args)
                          throws Exception
Throws:
Exception
Method Detail

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.