public final class LaunchRunner extends Object
main
method) to launch an evaluation of a launch configuration.
The main
method performs the following steps:
MDWorkbench
instance.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:
index
is the index of the launch argument to overridevalue
is the new value to set for the overriden argument. For a model connector, the value must of the form
connectorName|uri
.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.
Modifier and Type | Field and Description |
---|---|
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). |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Launches an evaluation of a launch configuration.
|
public static final String ARG_APPLICATION_ID
public static final String ARG_LAUNCH
public static final String ARG_EVALUATION_DIRECTORY
public static final String ARG_LAUNCH_ARG_PREFIX
public static final String ARG_LAUNCH_ARG_SUFFIX
public static final char ARG_LAUNCH_MODEL_SEPARATOR
"XMI|c:\models\file.xmi"
for example).public static void main(String[] args)
This method performs the following steps:
MDWorkbench
instance.Here is a command line snippet :
java -classpath "<...>" com.sodius.mdw.core.eval.launch.LaunchRunner -launch "c:\myProjects\myLaunchFilename.launch"
args
- the command line arguments.