1 28 29 package org.objectweb.util.launcher; 30 31 32 import org.objectweb.util.cmdline.lib.DefaultCommandLine; 33 34 import org.objectweb.util.launcher.option.OptionArg; 35 import org.objectweb.util.launcher.option.OptionContext; 36 import org.objectweb.util.launcher.option.OptionDebug; 37 import org.objectweb.util.launcher.option.OptionHelp; 38 import org.objectweb.util.launcher.option.OptionLoad; 39 import org.objectweb.util.launcher.option.OptionProperty; 40 import org.objectweb.util.launcher.option.OptionRun; 41 import org.objectweb.util.launcher.option.OptionVerbose; 42 43 44 52 public class LauncherCmdline 53 extends DefaultCommandLine 54 { 55 58 public LauncherCmdline() { 59 super(new String [] {"java org.objectweb.util.launcher.Launcher"}, 60 new String [] {"file:<my_application.xml>"}, 61 true, 62 new String [] {"Launch a new application", 63 "The application to launch is described in the <my_application.xml> file"}, 64 false); 65 66 addOption(new OptionHelp()); 67 addOption(new OptionVerbose()); 68 addOption(new OptionDebug()); 69 addOption(new OptionProperty()); 70 addOption(new OptionArg()); 71 addOption(new OptionContext()); 72 addOption(new OptionRun()); 73 addOption(new OptionLoad()); 74 } 75 } 76 | Popular Tags |