Package org.apache.commons.cli

Examples of org.apache.commons.cli.OptionBuilder


                        + "A URI to connect to Geronimo (including optional host and port parameters) has the form: "
                        + "deployer:geronimo:jmx[://host[:port]] (though you could also just use --host and --port instead).");
    }

    protected void addOptionWithParam(String longOption, String shortOption, String argName, String desc) {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName(argName);
        optionBuilder = optionBuilder.withLongOpt(longOption);
        optionBuilder = optionBuilder.withDescription(desc);
        Option option = optionBuilder.create(shortOption);
        options.addOption(option);
    }
View Full Code Here


                        + "A URI to connect to Geronimo (including optional host and port parameters) has the form: "
                        + "deployer:geronimo:jmx[://host[:port]] (though you could also just use --host and --port instead).");
    }

    protected void addOptionWithParam(String longOption, String shortOption, String argName, String desc) {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName(argName);
        optionBuilder = optionBuilder.withLongOpt(longOption);
        optionBuilder = optionBuilder.withDescription(desc);
        Option option = optionBuilder.create(shortOption);
        options.addOption(option);
    }
View Full Code Here

                        + "This is resolved relative to the geronimo base directory.\n",
                true);
    }
   
    protected void addOverride() {
        OptionBuilder optionBuilder = OptionBuilder.hasArgs().withArgName("moduleId ...");
        optionBuilder = optionBuilder.withLongOpt(ARGUMENT_MODULE_OVERRIDE);
        optionBuilder = optionBuilder.withDescription("USE WITH CAUTION!  Overrides the modules in "
                + "var/config/config.xml such that only the modules listed on "
                + "the command line will be started.  Note that many J2EE "
                + "features depend on certain modules being started, so you "
                + "should be very careful what you omit.  Any arguments after "
                + "this are assumed to be module names.");
        Option option = optionBuilder.create(ARGUMENT_MODULE_OVERRIDE_SHORTFORM);
        options.addOption(option);
    }
View Full Code Here

                        + "A URI to connect to Geronimo (including optional host and port parameters) has the form: "
                        + "deployer:geronimo:jmx[://host[:port]] (though you could also just use --host and --port instead).");
    }

    protected void addOptionWithParam(String longOption, String shortOption, String argName, String desc) {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName(argName);
        optionBuilder = optionBuilder.withLongOpt(longOption);
        optionBuilder = optionBuilder.withDescription(desc);
        Option option = optionBuilder.create(shortOption);
        options.addOption(option);
    }
View Full Code Here

                        + "This is resolved relative to the geronimo base directory.\n",
                true);
    }
   
    protected void addOverride() {
        OptionBuilder optionBuilder = OptionBuilder.hasArgs().withArgName("moduleId ...");
        optionBuilder = optionBuilder.withLongOpt(ARGUMENT_MODULE_OVERRIDE);
        optionBuilder = optionBuilder.withDescription("USE WITH CAUTION!  Overrides the modules in "
                + "var/config/config.xml such that only the modules listed on "
                + "the command line will be started.  Note that many J2EE "
                + "features depend on certain modules being started, so you "
                + "should be very careful what you omit.  Any arguments after "
                + "this are assumed to be module names.");
        Option option = optionBuilder.create(ARGUMENT_MODULE_OVERRIDE_SHORTFORM);
        options.addOption(option);
    }
View Full Code Here

                false,
                "If start is provided, the bundle will be automatically started after recorded in Geronimo.");
    }
   
    protected void addStartLevel() {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName("startLevel");
        optionBuilder = optionBuilder.withLongOpt(ARGUMENT_START_LEVEL);
        optionBuilder = optionBuilder.withDescription("If no start level are provided, will use the framework's initial bundle start level");
        Option option = optionBuilder.create(ARGUMENT_START_LEVEL_SHORTFORM);
        options.addOption(option);
    }
View Full Code Here

        Option option = optionBuilder.create(ARGUMENT_START_LEVEL_SHORTFORM);
        options.addOption(option);
    }
   
    protected void addGroupId() {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName("groupId");
        optionBuilder = optionBuilder.withLongOpt(ARGUMENT_GROUP_ID);
        optionBuilder = optionBuilder.withDescription("If gourpId is not provided, will use \"default\" as its group id.");
        Option option = optionBuilder.create(ARGUMENT_GROUP_ID_SHORTFORM);
        options.addOption(option);
    }
View Full Code Here

                        + "This is resolved relative to the geronimo base directory.\n",
                true);
    }
   
    protected void addOverride() {
        OptionBuilder optionBuilder = OptionBuilder.hasArgs().withArgName("moduleId ...");
        optionBuilder = optionBuilder.withLongOpt(ARGUMENT_MODULE_OVERRIDE);
        optionBuilder = optionBuilder.withDescription("USE WITH CAUTION!  Overrides the modules in "
                + "var/config/config.xml such that only the modules listed on "
                + "the command line will be started.  Note that many J2EE "
                + "features depend on certain modules being started, so you "
                + "should be very careful what you omit.  Any arguments after "
                + "this are assumed to be module names.");
        Option option = optionBuilder.create(ARGUMENT_MODULE_OVERRIDE_SHORTFORM);
        options.addOption(option);
    }
View Full Code Here

                false,
                "If start open is specified the bundle will be automatically started after installation.");
    }
   
    protected void addStartLevel() {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName("startLevel");
        optionBuilder = optionBuilder.withLongOpt(ARGUMENT_START_LEVEL);
        optionBuilder = optionBuilder.withDescription("If no start level are provided, will use the framework's initial bundle start level");
        Option option = optionBuilder.create(ARGUMENT_START_LEVEL_SHORTFORM);
        options.addOption(option);
    }
View Full Code Here

        Option option = optionBuilder.create(ARGUMENT_START_LEVEL_SHORTFORM);
        options.addOption(option);
    }
   
    protected void addGroupId() {
        OptionBuilder optionBuilder = OptionBuilder.hasArg().withArgName("groupId");
        optionBuilder = optionBuilder.withLongOpt(ARGUMENT_GROUP_ID);
        optionBuilder = optionBuilder.withDescription("If gourpId is not provided, will use \"default\" as its group id.");
        Option option = optionBuilder.create(ARGUMENT_GROUP_ID_SHORTFORM);
        options.addOption(option);
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.cli.OptionBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.