private static List targets = new ArrayList();
private static void setOptions() {
options = new Options();
options.addOption(new Option(HELP_OPT,
HELP_LONG,
false,
"print this message and exit"));
options.addOption(new Option(VERSION_OPT,
VERSION_LONG,
false,
"print the version information and exit"));
options.addOption(new Option(VERBOSE_OPT,
VERBOSE_LONG,
false,
"enable verbose messages to System.out"));
options.addOption(new Option(LOG_KIT_OPT,
LOG_KIT_LONG,
true,
"use given file for LogKit Management configuration"));
options.addOption(new Option(LOGGER_OPT,
LOGGER_LONG,
true,
"use given logger category as default logger for the Cocoon engine"));
options.addOption(new Option(LOG_LEVEL_OPT,
LOG_LEVEL_LONG,
true,
"choose the minimum log level for logging (DEBUG, INFO, WARN, ERROR, FATAL_ERROR) for startup logging"));
options.addOption(new Option(CONTEXT_DIR_OPT,
CONTEXT_DIR_LONG,
true,
"use given dir as context"));
options.addOption(new Option(DEST_DIR_OPT,
DEST_DIR_LONG,
true,
"use given dir as destination"));
options.addOption(new Option(WORK_DIR_OPT,
WORK_DIR_LONG,
true,
"use given dir as working directory"));
options.addOption(new Option(CONFIG_FILE_OPT,
CONFIG_FILE_LONG,
true,
"specify alternate location of the configuration"
+ " file (default is ${contextDir}/cocoon.xconf)"));
options.addOption(new Option(BROKEN_LINK_FILE_OPT,
BROKEN_LINK_FILE_LONG,
true,
"send a list of broken links to a file (one URI per line)"));
options.addOption(new Option(URI_FILE_OPT,
URI_FILE_LONG,
true,
"use a text file with uris to process (one URI per line)"));
options.addOption(new Option(XCONF_OPT,
XCONF_LONG,
true,
"specify a file containing XML configuration details"
+ " for the command line interface"));
options.addOption(new Option(AGENT_OPT,
AGENT_LONG,
true,
"use given string for user-agent header"));
options.addOption(new Option(ACCEPT_OPT,
ACCEPT_LONG,
true,
"use given string for accept header"));
options.addOption(new Option(FOLLOW_LINKS_OPT,
FOLLOW_LINKS_LONG,
true,
"process pages linked from starting page or not"
+ " (boolean argument is expected, default is true)"));
options.addOption(new Option(PRECOMPILE_ONLY_OPT,
PRECOMPILE_ONLY_LONG,
true,
"generate java code for xsp and xmap files"));
options.addOption(new Option(CONFIRM_EXTENSIONS_OPT,
CONFIRM_EXTENSIONS_LONG,
true,
"confirm that file extensions match mime-type of"
+ " pages and amend filename accordingly (default"
+ " is true)"));
options.addOption(new Option(LOAD_CLASS_OPT,
LOAD_CLASS_LONG,
true,
"specify a class to be loaded at startup (specifically"
+ " for use with JDBC). Can be used multiple times"));
options.addOption(new Option(DEFAULT_FILENAME_OPT,
DEFAULT_FILENAME_LONG,
true,
"specify a filename to be appended to a URI when the"
+ " URI refers to a directory"));
}