-
- // Initializes logging and log arguments
- initLogging(properties);
- if (log.isDebugEnabled()) {
- log.debug("Mode: " + mode);
- if (runtimeStr != null)
- log.debug("Runtime: " + runtimeStr);
- log.debug("User properties: " + properties);
- if (script != null)
- log.debug("Script: " + script);
- if (targets != null)
- log.debug("Targets: " + targets);
- }
-
- // Execution
- if (mode.equals(Mode.single)) {
- try {
- DefaultSlcRuntime runtime = new DefaultSlcRuntime();
- runtime.executeScript(runtimeStr, script, targets, properties,
- null, null);
- //System.exit(0);
- } catch (SlcException e) {
- log.error("SLC client terminated with an error: ", e);
- System.exit(1);
- }
- }