Package com.dotcms.repackage.org.apache.commons.cli

Examples of com.dotcms.repackage.org.apache.commons.cli.Option


            options = new Options();
        } else {
            return options;
        }

        Option userOption = new Option( UpdateOptions.USER, true, Messages.getString( "UpdateOptions.text.user" ) );
        Option passOption = new Option( UpdateOptions.PASSWORD, true, Messages.getString( "UpdateOptions.text.password" ) );
        Option fileOption = new Option( UpdateOptions.FILE, true, Messages.getString( "UpdateOptions.text.file", UpdateAgent.FOLDER_HOME_UPDATER + File.separator + "updates" ) );
        //Option backupOption = new Option( UpdateOptions.BACKUP, true, Messages.getString( "UpdateOptions.text.backup" ) );
        Option urlOption = new Option( UpdateOptions.URL, true, Messages.getString( "UpdateOptions.text.url" ) + props.getProperty( "update.url", "" ) );
        Option forceOption = new Option( UpdateOptions.FORCE, false, Messages.getString( "UpdateOptions.text.force" ) );
        Option noUpdaterOption = new Option( UpdateOptions.NO_UPDATE, false, Messages.getString( "UpdateOptions.text.no.autoupdater.updater" ) );
        Option dryrunOption = new Option( UpdateOptions.DRY_RUN, false, Messages.getString( "UpdateOptions.text.dryrun" ) );
        Option helpOption = new Option( UpdateOptions.HELP, false, Messages.getString( "UpdateOptions.text.help" ) );
        Option quietOption = new Option( UpdateOptions.QUIET, false, Messages.getString( "UpdateOptions.text.quiet" ) );
        Option verboseOption = new Option( UpdateOptions.VERBOSE, false, Messages.getString( "UpdateOptions.text.verbose" ) );
        Option homeOption = new Option( UpdateOptions.HOME, true, Messages.getString( "UpdateOptions.text.home", System.getProperty( "user.dir" ) ) );
        Option dotcmsHomeOption = new Option( UpdateOptions.DOTCMS_HOME, true, Messages.getString( "UpdateOptions.text.dotcms.home", System.getProperty( "user.dir" ) ) );
        Option logOption = new Option( UpdateOptions.LOG, true, "Name of the log file to be created. Defaults to: update_{timestamp}.log" );
        Option proxy = new Option( UpdateOptions.PROXY, true, Messages.getString( "UpdateOptions.text.proxy" ) );
        Option proxyUser = new Option( UpdateOptions.PROXY_USER, true, Messages.getString( "UpdateOptions.text.proxy.user" ) );
        Option proxyPass = new Option( UpdateOptions.PROXY_PASS, true, Messages.getString( "UpdateOptions.text.proxy.pass" ) );
        Option allowTestingBuildsOption = new Option( UpdateOptions.ALLOW_TESTING_BUILDS, true, Messages.getString( "UpdateOptions.text.allowtestingbuilds" ) );
        Option specificVersionOption = new Option( UpdateOptions.SPECIFIC_VERSION, true, Messages.getString( "UpdateOptions.text.specificversion" ) );

        OptionGroup originGroup = new OptionGroup();
        originGroup.addOption( urlOption );

        OptionGroup fileGroup = new OptionGroup();
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.apache.commons.cli.Option

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.