public class CommandLineExecuter
extends java.lang.Object
CmdConstants. The result file (by default .result) can be defined via the
command line option --resultFile=<i>fileOrFolder</i> (no spaces around "=").| Modifier and Type | Field and Description |
|---|---|
private static net.ssehub.easy.basics.logger.EASyLoggerFactory.EASyLogger |
LOGGER |
private static java.lang.String |
OPT_RESULTFILE |
private static java.util.List<java.lang.String> |
OPTIONS |
| Constructor and Description |
|---|
CommandLineExecuter() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
checkForOption(java.lang.String arg,
java.util.Map<java.lang.String,java.lang.String> options)
Checks an argument for a known option.
|
private static int |
checkValidity(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> options)
Handles the validity check calls.
|
private static int |
instantiate(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> options)
Handles the instantiate method calls.
|
private static int |
instantiateSelf(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> options)
Handles the instantiateSelf method calls.
|
static void |
main(java.lang.String[] args)
Main method for testing.
|
private static java.lang.String[] |
pruneArguments(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> options)
Prunes the argument list for known options.
|
private static final net.ssehub.easy.basics.logger.EASyLoggerFactory.EASyLogger LOGGER
private static final java.util.List<java.lang.String> OPTIONS
private static final java.lang.String OPT_RESULTFILE
public static void main(java.lang.String[] args)
args - Specification which method shall be executed. Also possibility to pass arguments to the selected
method.private static int instantiateSelf(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> options)
args - The arguments for the instantiateSelf method calls.options - additional command line options extracted from argsprivate static int instantiate(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> options)
args - The arguments for the instantiate method calls.options - additional command line options extracted from argsprivate static boolean checkForOption(java.lang.String arg,
java.util.Map<java.lang.String,java.lang.String> options)
arg - the argument to checkoptions - the optional option result (to be modified as a side effect)true if arg is an option and has been stored in options if not null,
false else (usual command line argument)private static java.lang.String[] pruneArguments(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> options)
args - the arguments to checkoptions - the optional option result (to be modified as a side effect)private static int checkValidity(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> options)
args - The arguments for the validity check.options - additional command line options extracted from argsCopyright © 2009 - 2018 SSE. All Rights Reserved.