cacheWorkerFragment.README.html Maven / Gradle / Ivy
vFabric™ GemFire®
cacheWorkerFragment
OSGi Fragment Bundle Example
This project is part of the cacheWorker and
cacheWorkerFragment OSGi Deployment Example. The Ant build.xml
generates a JAR that's ready to be deployed as an OSGi bundle. The JAR itself
contains only a META-INF/MANIFEST.MF
which defines it as a
fragment bundle that attaches to the GemFire bundle and imports packages from
the cacheWorker bundle.
Locating the Bundlor task definitions for Ant
You can download Bundlor from
http://www.springsource.org/bundlor. Unzip the bundlor-1.0.0.RELEASE.zip
file to BUNDLOR_HOME.
By default the Ant build.xml will attempt to use BUNDLOR_HOME if this is
defined as an environment variable. You can edit the build.xml and hardcode
the "bundlor.home" property value if you prefer:
Using the Ant build.xml
The supplied build.xml will locate all the necessary files, package it as
a .jar and use bundlor to transform it into an OSGi bundle.
Simply type "ant". The default target is "all" which will compile, package,
and use bundlor. The cacheWorkerFragment/target directory will contain the
cacheworker.fragment-1.0.0.jar bundle for deploying into an OSGi container
along with the GEMFIRE_HOME/lib/gemfire.jar, GEMFIRE_HOME/lib/antlr.jar and
cacheworker-1.0.0.jar bundles.
There's also a "debug" target to unjar the bundle as a convenience for
viewing the generated MANIFEST.MF contained within the
cacheworker.fragment-1.0.0.jar.