blob: 24dce5114074061c5efb8ea4d4c0d355c67c2d01 [file] [log] [blame]
Stuart McCulloch0d710772008-02-19 08:34:01 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<!-- ====================================================================== -->
4<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
5<!-- ====================================================================== -->
6
7<project name="ARTIFACT_ID" default="package" basedir=".">
8
9 <!-- ====================================================================== -->
10 <!-- Import maven-build.xml into the current project -->
11 <!-- ====================================================================== -->
12
13 <import file="maven-build.xml"/>
14
15 <!-- ====================================================================== -->
16 <!-- Help target -->
17 <!-- ====================================================================== -->
18
19 <target name="help">
20 <echo message="Please run: $ant -projecthelp"/>
21 </target>
22
23 <property name="bnd.version" value="BND_VERSION"/>
24
25 <target name="get-bnd"
26 depends="test-offline"
27 description="Download BND tool"
28 unless="maven.mode.offline">
29 <mkdir dir="${maven.repo.local}"/>
30 <mkdir dir="${maven.repo.local}/biz/aQute/bnd/${bnd.version}"/>
31 <get src="http://www.aqute.biz/repo/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"
32 dest="${maven.repo.local}/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"
33 usetimestamp="true"
34 ignoreerrors="true"/>
35 </target>
36
37 <taskdef resource="aQute/bnd/ant/taskdef.properties">
38 <classpath>
39 <pathelement location="${maven.repo.local}/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"/>
40 </classpath>
41 </taskdef>
42
43 <target name="package" depends="compile,test,get-bnd" description="Package the bundle">
44 <pathconvert property="bnd.classpath" refid="build.classpath" pathsep=","/>
45 <bnd files="maven-build.bnd" classpath="${bnd.classpath}"/>
46 </target>
47
48</project>