The ANT task allows Bundlor to be run from inside any ANT based build system.
Define a bundlor
namespace
<project name="bundlor-sample-ant" xmlns:bundlor="antlib:org.eclipse.virgo.bundlor.ant">
Import the bundlor
task into your build
<target name="bundlor.init"> <ivy:cachepath resolveId="bundlor.classpath" pathid="bundlor.classpath" organisation="org.eclipse.virgo.bundlor" module="org.eclipse.virgo.bundlor.ant" revision="1.1.2.RELEASE" conf="ant" inline="true" type="jar" log="download-only"/> <taskdef resource="org/eclipse/virgo/bundlor/ant/antlib.xml" uri="antlib:org.eclipse.virgo.bundlor.ant" classpathref="bundlor.classpath"/> </target>
Use the bundlor
task. See Section 4.2, “Apache ANT Usage” for details about the
parameters of the task.
<bundlor:bundlor inputPath="${basedir}/target/classes" outputPath="${basedir}/target/classes" bundleVersion="1.0.2.BUILD-${timestamp}" manifestTemplatePath="${basedir}/template.mf"/>