FELIX-247: add basic ant build template for BND

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@629021 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/resources/build.xml b/bundleplugin/src/main/resources/build.xml
new file mode 100644
index 0000000..24dce51
--- /dev/null
+++ b/bundleplugin/src/main/resources/build.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above.        -->
+<!-- ====================================================================== -->
+
+<project name="ARTIFACT_ID" default="package" basedir=".">
+
+  <!-- ====================================================================== -->
+  <!-- Import maven-build.xml into the current project                        -->
+  <!-- ====================================================================== -->
+
+  <import file="maven-build.xml"/>
+  
+  <!-- ====================================================================== -->
+  <!-- Help target                                                            -->
+  <!-- ====================================================================== -->
+
+  <target name="help">
+    <echo message="Please run: $ant -projecthelp"/>
+  </target>
+
+  <property name="bnd.version" value="BND_VERSION"/>
+
+  <target name="get-bnd"
+          depends="test-offline"
+          description="Download BND tool"
+          unless="maven.mode.offline">
+    <mkdir dir="${maven.repo.local}"/>
+    <mkdir dir="${maven.repo.local}/biz/aQute/bnd/${bnd.version}"/>
+    <get src="http://www.aqute.biz/repo/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"
+         dest="${maven.repo.local}/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"
+         usetimestamp="true"
+         ignoreerrors="true"/>
+  </target>
+
+  <taskdef resource="aQute/bnd/ant/taskdef.properties">
+    <classpath>
+      <pathelement location="${maven.repo.local}/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"/>
+    </classpath>
+  </taskdef>
+
+  <target name="package" depends="compile,test,get-bnd" description="Package the bundle">
+    <pathconvert property="bnd.classpath" refid="build.classpath" pathsep=","/>
+    <bnd files="maven-build.bnd" classpath="${bnd.classpath}"/>
+  </target>
+
+</project>