org.ops4j.pax.runner.platform
Class InitDScriptRunner

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

public class InitDScriptRunner
extends java.lang.Object
implements JavaRunner

Since:
Author:
Matthias Kuespert

Constructor Summary
InitDScriptRunner(java.lang.String applicationName)
          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 workingDir)
          retrieve template, replace some values and write to m_applicationName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitDScriptRunner

public InitDScriptRunner(java.lang.String applicationName)
Constructor

Parameters:
applicationName - The name of the application started by the script. Also defines the name of the generated script.
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
retrieve template, replace some values and write to m_applicationName

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
workingDir - working directory
Throws:
PlatformException - if something goes wrong


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