Package com.alibaba.antx.util.cli

Examples of com.alibaba.antx.util.cli.OptionBuilder.withLongOpt()


    public CLIManager() {
        OptionBuilder builder = new OptionBuilder();

        options = new Options();

        options.addOption(builder.withLongOpt("help").withDescription("显示帮助信息").create(OPT_HELP));

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));
View Full Code Here


        options = new Options();

        options.addOption(builder.withLongOpt("help").withDescription("显示帮助信息").create(OPT_HELP));

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));

        options.addOption(builder.withLongOpt("expand-war").hasOptionalArg().withDescription("是否展开war(yes|no),默认为yes")
                                 .create(OPT_EXPAND_WAR));
View Full Code Here

        options.addOption(builder.withLongOpt("help").withDescription("显示帮助信息").create(OPT_HELP));

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));

        options.addOption(builder.withLongOpt("expand-war").hasOptionalArg().withDescription("是否展开war(yes|no),默认为yes")
                                 .create(OPT_EXPAND_WAR));

        options.addOption(builder.withLongOpt("expand-rar").hasOptionalArg().withDescription("是否展开rar(yes|no),默认为yes")
View Full Code Here

        options.addOption(builder.withLongOpt("verbose").withDescription("显示更多信息").create(OPT_VERBOSE));

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));

        options.addOption(builder.withLongOpt("expand-war").hasOptionalArg().withDescription("是否展开war(yes|no),默认为yes")
                                 .create(OPT_EXPAND_WAR));

        options.addOption(builder.withLongOpt("expand-rar").hasOptionalArg().withDescription("是否展开rar(yes|no),默认为yes")
                                 .create(OPT_EXPAND_RAR));
View Full Code Here

        options.addOption(builder.withLongOpt("charset").hasArg().withDescription("输入/输出编码字符集").create(OPT_CHARSET));

        options.addOption(builder.withLongOpt("expand-war").hasOptionalArg().withDescription("是否展开war(yes|no),默认为yes")
                                 .create(OPT_EXPAND_WAR));

        options.addOption(builder.withLongOpt("expand-rar").hasOptionalArg().withDescription("是否展开rar(yes|no),默认为yes")
                                 .create(OPT_EXPAND_RAR));

        options.addOption(builder.withLongOpt("expand-ejb-jar").hasOptionalArg()
                                 .withDescription("是否展开ejb-jar(yes|no),默认为no").create(OPT_EXPAND_EJB_JAR));
View Full Code Here

                                 .create(OPT_EXPAND_WAR));

        options.addOption(builder.withLongOpt("expand-rar").hasOptionalArg().withDescription("是否展开rar(yes|no),默认为yes")
                                 .create(OPT_EXPAND_RAR));

        options.addOption(builder.withLongOpt("expand-ejb-jar").hasOptionalArg()
                                 .withDescription("是否展开ejb-jar(yes|no),默认为no").create(OPT_EXPAND_EJB_JAR));

        options.addOption(builder.withLongOpt("overwrite").hasOptionalArg()
                                 .withDescription("如果目标目录中的文件比zip文件中的项要新,是否覆盖之,默认为no").create(OPT_OVERWRITE));
View Full Code Here

                                 .create(OPT_EXPAND_RAR));

        options.addOption(builder.withLongOpt("expand-ejb-jar").hasOptionalArg()
                                 .withDescription("是否展开ejb-jar(yes|no),默认为no").create(OPT_EXPAND_EJB_JAR));

        options.addOption(builder.withLongOpt("overwrite").hasOptionalArg()
                                 .withDescription("如果目标目录中的文件比zip文件中的项要新,是否覆盖之,默认为no").create(OPT_OVERWRITE));

        options.addOption(builder.withLongOpt("keep-redundant-files").hasOptionalArg()
                                 .withDescription("如果目标目录中有多余的文件,是否保持而不删除,默认为no").create(OPT_KEEP_REDUNDANT_FILES));
    }
View Full Code Here

                                 .withDescription("是否展开ejb-jar(yes|no),默认为no").create(OPT_EXPAND_EJB_JAR));

        options.addOption(builder.withLongOpt("overwrite").hasOptionalArg()
                                 .withDescription("如果目标目录中的文件比zip文件中的项要新,是否覆盖之,默认为no").create(OPT_OVERWRITE));

        options.addOption(builder.withLongOpt("keep-redundant-files").hasOptionalArg()
                                 .withDescription("如果目标目录中有多余的文件,是否保持而不删除,默认为no").create(OPT_KEEP_REDUNDANT_FILES));
    }

    public CommandLine parse(String[] args) {
        CommandLine cli;
View Full Code Here

    public CLIManager() {
        OptionBuilder builder = new OptionBuilder();

        options = new Options();

        options.addOption(builder.withLongOpt("help").withDescription("��ʾ������Ϣ").create(OPT_HELP));

        options.addOption(builder.withLongOpt("include-descriptors").hasArg().withDescription(
                "������Щ���������ļ������磺conf/auto-config.xml����ʹ��*��**��?ͨ��������ж���ö��ŷָ�").create(OPT_INCLUDE_DESCRIPTORS));

        options.addOption(builder.withLongOpt("exclude-descriptors").hasArg().withDescription(
View Full Code Here

        options = new Options();

        options.addOption(builder.withLongOpt("help").withDescription("��ʾ������Ϣ").create(OPT_HELP));

        options.addOption(builder.withLongOpt("include-descriptors").hasArg().withDescription(
                "������Щ���������ļ������磺conf/auto-config.xml����ʹ��*��**��?ͨ��������ж���ö��ŷָ�").create(OPT_INCLUDE_DESCRIPTORS));

        options.addOption(builder.withLongOpt("exclude-descriptors").hasArg().withDescription(
                "�ų���Щ���������ļ�����ʹ��*��**��?ͨ��������ж���ö��ŷָ�").create(OPT_EXCLUDE_DESCRIPTORS));

 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.