public void configureOptions()

in src/main/java/org/apache/easyant/core/EasyAntMain.java [570:640]


    public void configureOptions() {
        options.addOption("h", "help", false, "print this message");

        options.addOption("p", "projecthelp", false, "print project help information");
        options.addOption("version", false, "print the version information and exit");
        options.addOption("diagnostics", false,
                "print information that might be helpful to diagnose or report problems");
        options.addOption("showMemoryDetails", false, "print memory details (used/free/total)");
        options.addOption("q", "quiet", false, "be extra quiet");
        options.addOption("v", "verbose", false, "be extra verbose");
        options.addOption("d", "debug", false, "print debugging information");
        options.addOption("e", "emacs", false, "produce logging information without adornments");
        Option lib = OptionBuilder.withArgName("path").hasArg()
                .withDescription("specifies a path to search for jars and classes").create("lib");
        options.addOption(lib);
        Option logfile = OptionBuilder.withArgName("file").hasArg().withDescription("use given file for log")
                .create("logfile");
        options.addOption(logfile);
        Option logger = OptionBuilder.withArgName("classname").hasArg()
                .withDescription("the class which it to perform " + "logging").create("logger");
        options.addOption(logger);
        Option listener = OptionBuilder.withArgName("classname").hasArg()
                .withDescription("add an instance of class as " + "a project listener").create("listener");
        options.addOption(listener);
        Option buildfile = OptionBuilder.withArgName("file").hasArg().withDescription("use given buildfile")
                .create("buildfile");
        options.addOption(buildfile);
        Option find = OptionBuilder.withArgName("file").hasOptionalArg()
                .withDescription("search for buildfile towards the " + "root of the filesystem and use it")
                .withLongOpt("find").create("s");
        options.addOption(find);
        options.addOption("noinput", false, "do not allow interactive input");
        Option buildmodule = OptionBuilder.withArgName("file").hasArg().withDescription("use given buildmodule")
                .withLongOpt("buildmodule").create("f");
        options.addOption(buildmodule);

        Option buildconf = OptionBuilder.withArgName("confs").hasArg()
                .withDescription("specify build configurations (profiles)").withLongOpt("buildconf").create("C");
        options.addOption(buildconf);
        Option configFile = OptionBuilder.withArgName("file").hasArg()
                .withDescription("use given easyant configuration").create("configfile");
        options.addOption(configFile);
        Option property = OptionBuilder.withArgName("property=value").hasArgs(2).withValueSeparator()
                .withDescription("use value for given property").create("D");
        options.addOption(property);
        options.addOption("k", "keep-going", false, "execute all targets that do not depend on failed target(s)");
        Option propertiesfile = OptionBuilder.withArgName("file").hasArg()
                .withDescription("load all properties from file with -D properties taking precedence")
                .create("propertyfile");
        options.addOption(propertiesfile);
        Option inputhandler = OptionBuilder.withArgName("classname").hasArg()
                .withDescription("the class which will handle input requests").create("inputhandler");
        options.addOption(inputhandler);
        Option nice = OptionBuilder.withArgName("number").hasArg()
                .withDescription("A niceness value for the main thread: 1 (lowest) to 10 (highest); 5 is the default")
                .create("nice");
        options.addOption(nice);
        options.addOption("nouserlib", false, "Run ant without using the jar files from ${user.home}/.ant/lib");
        options.addOption("noclasspath", false, "Run ant without using CLASSPATH");
        options.addOption("autoproxy", false, "Java1.5+: use the OS proxy settings");
        Option main = OptionBuilder.withArgName("classname").hasArg()
                .withDescription("override EasyAnt's normal entry point").create("main");
        options.addOption(main);
        options.addOption("o", "offline", false, "turns EasyAnt in offline mode");
        options.addOption(new Describe());
        options.addOption(new ListExtensionPoints());
        options.addOption(new ListTargets());
        options.addOption(new ListProps());
        options.addOption(new ListParameters());
        options.addOption(new ListPlugins());
    }