Mercurial > hg > release > thermostat-0.7
view distribution/config/commands/agent.properties @ 1007:53ce942c35c1
Convert plugins to use plugin installation mechanism
This commit converts the existing Thermostat plugins (Host CPU, Thread,
NUMA, etc.) to be installed using the plugin installation mechanism.
Each plugin now has a distribution module that creates a zip artifact
with the necessary jars and plugin.xml using maven-assembly-plugin.
The assembly descriptor is put in a shared place for all plugins under
a new top-level assembly module. The main distribution module now has
a dependency on each plugin's zip artifact. At build time, the
distribution module invokes maven-assembly-plugin again to unpack all
plugins' distribution zips under target/plugins. The reason for using
zips is that it seemed to be the only way for maven-assembly-plugin to
create the desired layout under target/plugins, although other archive
formats should work just as well.
I have similarly changed distribution to use maven-assembly-plugin to
place core jars under target/libs. The one difference here is that
expectj.jar and tools.jar are no longer included. This seems to be since
expectj is only used for testing and tools.jar is always provided by the
system. So this change should be beneficial in that regard, along with
reducing the amount of plugins we use and thus simplifying our build.
I have also modified the plugin.xml parser to ignore comments, as the
copyright headers were breaking it. As far as building goes, mvn clean
package still builds the core and all plugins.
Reviewed-by: jerboaa, omajid, vanaltj
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-February/005580.html
author | Elliott Baron <ebaron@redhat.com> |
---|---|
date | Tue, 26 Feb 2013 15:31:32 -0500 |
parents | 81508fc5f27b |
children | d33dc1c2d0ad |
line wrap: on
line source
bundles = thermostat-agent-core-@project.version@.jar, \ thermostat-web-common-@project.version@.jar, \ thermostat-web-client-@project.version@.jar, \ httpcomponents-core.jar, \ httpcomponents-client.jar, \ gson.jar, \ thermostat-osgi-process-handler-@project.version@.jar, \ thermostat-common-core-@project.version@.jar, \ thermostat-agent-cli-@project.version@.jar, \ thermostat-common-command-@project.version@.jar, \ thermostat-agent-command-@project.version@.jar, \ thermostat-killvm-agent-@project.version@.jar, \ thermostat-system-backend-@project.version@.jar, \ thermostat-storage-mongodb-${project.version}.jar, \ mongo.jar, \ commons-beanutils.jar, \ commons-codec.jar, \ commons-collections.jar, \ commons-logging.jar, \ netty.jar description = starts and stops the thermostat agent usage = agent -d <url> [-u <user> -p <password>] [-s] [--debug] [-l <level>] options = AUTO_LOG_OPTION, AUTO_DB_OPTIONS, saveOnExit, dbUrl, debug saveOnExit.short = s saveOnExit.long = saveOnExit saveOnExit.description = save the data on exit saveOnExit.required = false saveOnExit.hasarg = false dbUrl.required = true debug.short = v debug.long = debug debug.hasarg = false debug.required = false debug.description = launch with debug console enabled