blob: acff2fdb22dd75b7260375e9a862210936b5fe74 [file] [log] [blame]
<?xml version="1.0" standalone="no"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<section id="quickstart.ant">
<title>Apache ANT Quickstart</title>
<para>The ANT task allows Bundlor to be run from inside any ANT based build system.</para>
<orderedlist>
<listitem>
<para>Define a <literal>bundlor</literal> namespace</para>
<programlisting language="xml">&lt;project name="bundlor-sample-ant"
xmlns:bundlor="antlib:org.eclipse.virgo.bundlor.ant"&gt;</programlisting>
</listitem>
<listitem>
<para>Import the <literal>bundlor</literal> task into your build</para>
<programlisting language="xml">&lt;target name=&quot;bundlor.init&quot;&gt;
&lt;ivy:cachepath resolveId=&quot;bundlor.classpath&quot; pathid=&quot;bundlor.classpath&quot; organisation=&quot;org.eclipse.virgo.bundlor&quot;
module=&quot;org.eclipse.virgo.bundlor.ant&quot; revision=&quot;@bundle.version@&quot; conf=&quot;ant&quot; inline=&quot;true&quot;
type=&quot;jar&quot; log=&quot;download-only&quot;/&gt;
&lt;taskdef resource=&quot;org/eclipse/virgo/bundlor/ant/antlib.xml&quot; uri=&quot;antlib:org.eclipse.virgo.bundlor.ant&quot;
classpathref=&quot;bundlor.classpath&quot;/&gt;
&lt;/target&gt;</programlisting>
</listitem>
<listitem>
<para>
Use the <literal>bundlor</literal> task. See <xref linkend="usage.ant"/> for details about the
parameters of the task.
</para>
<programlisting language="xml">
&lt;bundlor:bundlor
inputPath="${basedir}/target/classes"
outputPath="${basedir}/target/classes"
bundleVersion="1.0.2.BUILD-${timestamp}"
manifestTemplatePath="${basedir}/template.mf"/&gt;
</programlisting>
</listitem>
</orderedlist>
</section>