KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > util > launcher > LauncherCmdline


1 /*====================================================================
2
3 ObjectWeb Util Launcher Package.
4 Copyright (C) 2004 INRIA & USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Romain Rouvoy.
23 Contributor(s): .
24
25 --------------------------------------------------------------------
26 $Id: LauncherCmdline.java,v 1.2 2004/05/21 13:59:16 carpentier Exp $
27 ====================================================================*/

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 /**
45  * LauncherCmdline specialization of DefaultCommandLine object.
46  * <p>
47  * this structure considers only characters list.
48  * </p>
49  * @author <a HREF="mailto:Romain.Rouvoy@lifl.fr">Romain Rouvoy</a>
50  * @version 0.1
51  */

52 public class LauncherCmdline
53      extends DefaultCommandLine
54 {
55     /**
56      * Default Constructor
57      */

58     public LauncherCmdline() {
59         super(new String JavaDoc[] {"java org.objectweb.util.launcher.Launcher"},
60               new String JavaDoc[] {"file:<my_application.xml>"},
61               true,
62               new String JavaDoc[] {"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