com.sodius.mdw.core.eval.launch
Class LaunchRunner

java.lang.Object
  extended by com.sodius.mdw.core.eval.launch.LaunchRunner

public final class LaunchRunner
extends Object

A runnable class (with a main method) to launch an evaluation of a launch configuration.

The main method performs the following steps :

Here is a command line snippet :

java -classpath "<...>" com.sodius.mdw.core.eval.launch.LaunchRunner -launch "c:\myProjects\myLaunchFilename.launch"

You can override the evaluation directory to use:

java -classpath "<...>" com.sodius.mdw.core.eval.launch.LaunchRunner -launch "c:\myProjects\myLaunchFilename.launch" -evaluationDirectory c:\test\generated

You can also override launch arguments, using a -args[index] value notation:

java -classpath "<...>" com.sodius.mdw.core.eval.launch.LaunchRunner -launch "c:\myProjects\myLaunchFilename.launch" -args[0] "XMI|c:\models\myModel.xmi" -args[2] "Hello World" -args[3] true

This class cannot be instantiated or subclassed by clients. It is just intended to run in command line mode.


Field Summary
static String ARG_APPLICATION_ID
          The argument name which references the application ID to use.
static String ARG_EVALUATION_DIRECTORY
          The argument name which references the directory where to generate files (overrides the one specified in the launch configuration).
static String ARG_LAUNCH
          The argument name which references the file path which contains a launch configuration.
static String ARG_LAUNCH_ARG_PREFIX
          The prefix of the argument name to override a launch parameter.
static String ARG_LAUNCH_ARG_SUFFIX
          The suffix of the argument name to override a launch parameter.
static char ARG_LAUNCH_MODEL_SEPARATOR
          The character to separate the model reader from the uri ("XMI|c:\models\file.xmi" for example).
 
Method Summary
static void main(String[] args)
          Launches an evaluation of a launch configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARG_APPLICATION_ID

public static final String ARG_APPLICATION_ID
The argument name which references the application ID to use.

See Also:
MDWorkbenchFactory.create(String), Constant Field Values

ARG_LAUNCH

public static final String ARG_LAUNCH
The argument name which references the file path which contains a launch configuration.

See Also:
Constant Field Values

ARG_EVALUATION_DIRECTORY

public static final String ARG_EVALUATION_DIRECTORY
The argument name which references the directory where to generate files (overrides the one specified in the launch configuration).

Since:
2.1.0
See Also:
Constant Field Values

ARG_LAUNCH_ARG_PREFIX

public static final String ARG_LAUNCH_ARG_PREFIX
The prefix of the argument name to override a launch parameter. (overrides the one specified in the launch configuration).

Since:
2.1.0
See Also:
Constant Field Values

ARG_LAUNCH_ARG_SUFFIX

public static final String ARG_LAUNCH_ARG_SUFFIX
The suffix of the argument name to override a launch parameter.

Since:
2.1.0
See Also:
Constant Field Values

ARG_LAUNCH_MODEL_SEPARATOR

public static final char ARG_LAUNCH_MODEL_SEPARATOR
The character to separate the model reader from the uri ("XMI|c:\models\file.xmi" for example).

Since:
2.1.0
See Also:
Constant Field Values
Method Detail

main

public static void main(String[] args)
Launches an evaluation of a launch configuration.

This method performs the following steps :

Here is a command line snippet :

java -classpath "<...>" com.sodius.mdw.core.eval.launch.LaunchRunner -launch "c:\myProjects\myLaunchFilename.launch"