org.ops4j.pax.runner.platform
Class ScriptJavaRunner
java.lang.Object
org.ops4j.pax.runner.platform.ScriptJavaRunner
- All Implemented Interfaces:
- JavaRunner
- Direct Known Subclasses:
- ZipJavaRunner
public class ScriptJavaRunner
- extends java.lang.Object
- implements JavaRunner
A Java Runner that writes shell and batch scripts in the
runner directory that start the specified OSGi framework.
- Author:
- Alin Dreghiciu (adreghiciu@gmail.com), Mike Smoot (msmoot@ucsd.edu)
Method Summary |
void |
exec(java.lang.String[] vmOptions,
java.lang.String[] classpath,
java.lang.String mainClass,
java.lang.String[] programOptions,
java.lang.String javaHome,
java.io.File workingDirectory)
Starts the selected Java program, up to service implementation whether it waits for it to exit. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptJavaRunner
public ScriptJavaRunner()
- Constructor.
exec
public void exec(java.lang.String[] vmOptions,
java.lang.String[] classpath,
java.lang.String mainClass,
java.lang.String[] programOptions,
java.lang.String javaHome,
java.io.File workingDirectory)
throws PlatformException
- Starts the selected Java program, up to service implementation whether it waits for it to exit.
- Specified by:
exec
in interface JavaRunner
- Parameters:
vmOptions
- selected JVM optionsclasspath
- application class pathmainClass
- main program entry pointprogramOptions
- program specific optionsjavaHome
- java home directoryworkingDirectory
- working directory
- Throws:
PlatformException
- if something goes wrong
Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.