| <?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"><project name="bundlor-sample-ant" |
| xmlns:bundlor="antlib:org.eclipse.virgo.bundlor.ant"></programlisting> |
| </listitem> |
| <listitem> |
| <para>Import the <literal>bundlor</literal> task into your build</para> |
| <programlisting language="xml"><target name="bundlor.init"> |
| <ivy:cachepath resolveId="bundlor.classpath" pathid="bundlor.classpath" organisation="org.eclipse.virgo.bundlor" |
| module="org.eclipse.virgo.bundlor.ant" revision="@bundle.version@" 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></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"> |
| <bundlor:bundlor |
| inputPath="${basedir}/target/classes" |
| outputPath="${basedir}/target/classes" |
| bundleVersion="1.0.2.BUILD-${timestamp}" |
| manifestTemplatePath="${basedir}/template.mf"/> |
| </programlisting> |
| </listitem> |
| </orderedlist> |
| </section> |