Previous Topic: Run Bundle Builder to Create a BundleNext Topic: How Bundle Builder Packages a Connector


Start Bundle Builder from an Ant Task

You can create and run an Ant script to run Bundle Builder, instead of running the tool from the command line. Ant lets you scrip the entire process of building and packaging your connector

Follow these steps:

  1. Create a new Ant script, or identify an existing script.
  2. Add the task for running Bundle Builder to the script.
  3. Create an Ant target to use the Bundle Builder task.
  4. Run the Ant script.

The bundle builder tool is started by the Ant script.

Example: ANT Script to Run Bundle Builder

<target name=”osgi-jar-builder “ >
  <taskdef name=”bundlebuilder
    classname=”com.ca.jcs.osgi.bundletool.BundleBuilderAntTask”
    classpath=”${build-dir}/../../../build/BundleBuilder.jar” />
  <bundlebuilder manifestfile=”${basedir}/META-INF/manifest.mf”
    jardir=”${base-dir}/connectors/connectorName/build/dist/lib”
    outputdir=”${build-dir}/inst/deploy” />
</target>