Package com.alibaba.antx.util.cli

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


        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

                "�Ƿ�չ��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));

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

        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));

        options.addOption(builder.withLongOpt("include-packages").hasArg()
                                 .withDescription("包含哪些打包文件,例如:target/*.war,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_INCLUDE_PACKAGES));

 
View Full Code Here

                                 .create(OPT_INCLUDE_DESCRIPTORS));

        options.addOption(builder.withLongOpt("exclude-descriptors").hasArg()
                                 .withDescription("排除哪些配置描述文件,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_EXCLUDE_DESCRIPTORS));

        options.addOption(builder.withLongOpt("include-packages").hasArg()
                                 .withDescription("包含哪些打包文件,例如:target/*.war,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_INCLUDE_PACKAGES));

        options.addOption(builder.withLongOpt("exclude-packages").hasArg()
                                 .withDescription("排除哪些打包文件,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_EXCLUDE_PACKAGES));

 
View Full Code Here

                                 .withDescription("排除哪些配置描述文件,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_EXCLUDE_DESCRIPTORS));

        options.addOption(builder.withLongOpt("include-packages").hasArg()
                                 .withDescription("包含哪些打包文件,例如:target/*.war,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_INCLUDE_PACKAGES));

        options.addOption(builder.withLongOpt("exclude-packages").hasArg()
                                 .withDescription("排除哪些打包文件,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_EXCLUDE_PACKAGES));

        options.addOption(builder.withLongOpt("interactive").hasOptionalArg()
                                 .withDescription("交互模式:auto|on|off,默认为auto,无参数表示on").create(OPT_INTERACTIVE_MODE));

View Full Code Here

                                 .withDescription("包含哪些打包文件,例如:target/*.war,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_INCLUDE_PACKAGES));

        options.addOption(builder.withLongOpt("exclude-packages").hasArg()
                                 .withDescription("排除哪些打包文件,可使用*、**、?通配符,如有多项,用逗号分隔").create(OPT_EXCLUDE_PACKAGES));

        options.addOption(builder.withLongOpt("interactive").hasOptionalArg()
                                 .withDescription("交互模式:auto|on|off,默认为auto,无参数表示on").create(OPT_INTERACTIVE_MODE));

        options.addOption(builder.withLongOpt("non-interactive").withDescription("非交互模式,相当于--interactive=off")
                                 .create(OPT_NON_INTERACTIVE_MODE));

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.