-@SuppressWarnings("restriction")
-public class SlcMain {
- /** Unique launch module */
- public static String UNIQUE_LAUNCH_MODULE_PROPERTY = "slc.launch.module";
-
- /** Unique launch flow */
- public static String UNIQUE_LAUNCH_FLOW_PROPERTY = "slc.launch.flow";
-
- // public enum Type {
- // standalone, agent, server
- // }
-
- // private static Boolean debug = true;
-
- // private final static String BOOTSTRAP_LOG4J_CONFIG =
- // "org/argeo/slc/cli/bootstrapLog4j.properties";
- // private final static String DEFAULT_AGENT_CONTEXT =
- // "classpath:org/argeo/slc/cli/spring-agent-default.xml";
-
- // private final static Option typeOpt = OptionBuilder.withLongOpt("mode")
- // .withArgName("mode").hasArg()
- // .withDescription("Execution type, one of: " + listTypeValues())
- // .create('t');
- //
- // private final static Option propertyOpt = OptionBuilder
- // .withLongOpt("property").withArgName("prop1=val1,prop2=val2")
- // .hasArgs().withValueSeparator(',')
- // .withDescription("use value for given property").create('p');
- //
- // private final static Option propertiesOpt = OptionBuilder
- // .withLongOpt("properties").withArgName("properties file").hasArgs()
- // .withValueSeparator(',')
- // .withDescription("load properties from file (-p has priority)")
- // .create('P');
- //
- // private final static Option moduleOpt =
- // OptionBuilder.withLongOpt("module")
- // .withArgName("module").hasArg().withDescription("Execution module")
- // .create('m');
- //
- // private final static Option flowsOpt = OptionBuilder.withLongOpt("flows")
- // .withArgName("flows").hasArg().withDescription("Flows to execute")
- // .create('f');
- //
- // private final static Option runtimeOpt = OptionBuilder
- // .withLongOpt("runtime").withArgName("runtime").hasArg()
- // .withDescription("Runtime URL").create('r');
-
- private final static Options options;
-
- private final static String commandName = "slc";
-
- // private static String bundlesToInstall = "/usr/share/osgi;in=*.jar";
- private static String bundlesToInstall = System.getProperty("user.home")
- + "/dev/src/slc/runtime/org.argeo.slc.launcher/target/dependency;in=*.jar";
-
- // private static String bundlesToStart =
- // "org.springframework.osgi.extender,"
- // + "org.argeo.node.repofactory.jackrabbit,"
- // + "org.argeo.node.repo.jackrabbit," + "org.argeo.security.dao.os,"
- // + "org.argeo.slc.node.jackrabbit," + "org.argeo.slc.agent,"
- // + "org.argeo.slc.agent.jcr";
- private static String bundlesToStart = "org.springframework.osgi.extender,"
- + "org.argeo.slc.agent";