Mercurial > hg > release > thermostat-0.5
view distribution/config/commands/gui.properties @ 915:0f4271d4e334
Change common options implementation.
This patch removes the old CommonCommandOptions class. Common options - dbUrl,
logLevel, username, password - are now automatically added if the "options"
list in command.properties contains "special" option names such as
AUTO_DB_OPTIONS (dbUrl, username, password) and AUTO_LOG_OPTION (logLevel). If
these are present thermostat adds options as requested automatically. Note that
all automatic options are optional. The required property can be
changed/overridden by using a <option-name>.required key in command.properties
and adding <option-name> to the "options" list AFTER the AUTO_* option.
I've also cleaned up the command.properties files and help command output.
command.properties don't need to maintain "thermostat" any longer. Moreover,
help output contains the description of the command as well. Example:
$ ./distribution/target/bin/thermostat help agent
usage: thermostat agent [-d <url> [-u <user> -p <password>]] [-s] [--debug] [-l
<level>]
starts and stops the thermostat agent
thermostat agent
-d,--dbUrl <dbUrl> connect to the given URL
-l,--logLevel <logLevel> sets the log level for this invocation. Possible
values for <level> in decreasing severity are:
SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
and OFF.
-p,--password <password> the password to use for authentication
-s,--saveOnExit save the data on exit
-u,--username <username> the username to use for authentication
-v,--debug launch with debug console enabled
Finally, this should be the last patch required in order to drop the
storage-core dependency of common-core, since it removes the need for
client-cli to depend on the launcher bundle.
It fixes PR1200 too.
Reviewed-by: ebaron, vanaltj
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-January/005118.html
author | Severin Gehwolf <sgehwolf@redhat.com> |
---|---|
date | Fri, 11 Jan 2013 19:23:03 +0100 |
parents | 3cc2f2ea31b3 |
children | 8a6697503832 |
line wrap: on
line source
bundles = thermostat-storage-mongodb-${project.version}.jar, \ mongo.jar, \ commons-beanutils.jar, \ commons-collections.jar, \ commons-codec.jar, \ commons-logging.jar, \ gson.jar, \ thermostat-web-common-@project.version@.jar, \ thermostat-web-client-@project.version@.jar, \ thermostat-common-command-@project.version@.jar, \ thermostat-client-core-@project.version@.jar, \ thermostat-client-swing-@project.version@.jar, \ thermostat-swing-components-@project.version@.jar, \ thermostat-client-command-@project.version@.jar, \ thermostat-host-overview-client-core-@project.version@.jar, \ thermostat-host-overview-client-swing-@project.version@.jar, \ thermostat-host-cpu-common-@project.version@.jar, \ thermostat-host-cpu-client-core-@project.version@.jar, \ thermostat-host-cpu-client-swing-@project.version@.jar, \ thermostat-host-memory-common-@project.version@.jar, \ thermostat-host-memory-client-core-@project.version@.jar, \ thermostat-host-memory-client-swing-@project.version@.jar, \ thermostat-vm-overview-client-core-@project.version@.jar, \ thermostat-vm-overview-client-swing-@project.version@.jar, \ thermostat-vm-cpu-common-@project.version@.jar, \ thermostat-vm-cpu-client-core-@project.version@.jar, \ thermostat-vm-cpu-client-swing-@project.version@.jar, \ thermostat-vm-gc-common-@project.version@.jar, \ thermostat-vm-gc-client-core-@project.version@.jar, \ thermostat-vm-gc-client-swing-@project.version@.jar, \ thermostat-vm-memory-common-@project.version@.jar, \ thermostat-vm-memory-client-core-@project.version@.jar, \ thermostat-vm-memory-client-swing-@project.version@.jar, \ thermostat-vm-heap-analysis-client-core-@project.version@.jar, \ thermostat-vm-heap-analysis-client-swing-@project.version@.jar, \ thermostat-vm-heap-analysis-common-@project.version@.jar, \ thermostat-vm-heap-analysis-command-@project.version@.jar, \ thermostat-killvm-client-swing-@project.version@.jar, \ thermostat-vm-classstat-common-@project.version@.jar, \ thermostat-vm-classstat-client-core-@project.version@.jar, \ thermostat-vm-classstat-client-swing-@project.version@.jar, \ thermostat-osgi-living-vm-filter-core-@project.version@.jar, \ thermostat-osgi-living-vm-filter-swing-@project.version@.jar, \ thermostat-thread-collector-@project.version@.jar, \ thermostat-thread-client-swing-@project.version@.jar, \ thermostat-thread-client-controllers-@project.version@.jar, \ thermostat-thread-client-common-@project.version@.jar, \ thermostat-gc-remote-collector-common-@project.version@.jar, \ thermostat-gc-remote-collector-client-common-@project.version@.jar, \ thermostat-gc-remote-collector-client-swing-@project.version@.jar, \ thermostat-osgi-process-handler-@project.version@.jar, \ httpcomponents-core.jar, \ httpcomponents-client.jar, \ netty.jar description = launches the GUI client usage = gui [-l <level>] options = AUTO_LOG_OPTION