org.ops4j.pax.runner.platform
Class ZipJavaRunner

java.lang.Object
  extended by org.ops4j.pax.runner.platform.ScriptJavaRunner
      extended by org.ops4j.pax.runner.platform.ZipJavaRunner
All Implemented Interfaces:
JavaRunner

public class ZipJavaRunner
extends ScriptJavaRunner

Extends ScriptJavaRunner and in plus zips the cvontent of working directory.

Since:
0.20.0, April 27, 2009
Author:
Toni Menzel (tonit), Alin Dreghiciu (adreghiciu@gmail.com)

Constructor Summary
ZipJavaRunner()
           
 
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 workingDir)
          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

ZipJavaRunner

public ZipJavaRunner()
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 workingDir)
          throws PlatformException
Starts the selected Java program, up to service implementation whether it waits for it to exit.

Specified by:
exec in interface JavaRunner
Overrides:
exec in class ScriptJavaRunner
Parameters:
vmOptions - selected JVM options
classpath - application class path
mainClass - main program entry point
programOptions - program specific options
javaHome - java home directory
workingDir - working directory
Throws:
PlatformException - if something goes wrong


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