org.ops4j.pax.runner.platform
Class ScriptJavaRunner

java.lang.Object
  extended by 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)

Constructor Summary
ScriptJavaRunner()
          Constructor.
 
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
 

Constructor Detail

ScriptJavaRunner

public ScriptJavaRunner()
Constructor.

Method Detail

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 options
classpath - application class path
mainClass - main program entry point
programOptions - program specific options
javaHome - java home directory
workingDirectory - working directory
Throws:
PlatformException - if something goes wrong


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.