blob: a397cbb2c91fb431b70c0be495e5b7f640554c58 [file] [log] [blame]
Stuart McCulloch0d710772008-02-19 08:34:01 +00001<?xml version="1.0" encoding="UTF-8"?>
Stuart McCulloch3be101e2011-06-16 17:33:04 +00002<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
Stuart McCulloch0d710772008-02-19 08:34:01 +000020
21<!-- ====================================================================== -->
22<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
23<!-- ====================================================================== -->
24
25<project name="ARTIFACT_ID" default="package" basedir=".">
26
27 <!-- ====================================================================== -->
28 <!-- Import maven-build.xml into the current project -->
29 <!-- ====================================================================== -->
30
31 <import file="maven-build.xml"/>
32
33 <!-- ====================================================================== -->
34 <!-- Help target -->
35 <!-- ====================================================================== -->
36
37 <target name="help">
38 <echo message="Please run: $ant -projecthelp"/>
39 </target>
40
Stuart McCulloch37ec4e62008-05-16 04:39:32 +000041 <property name="bnd.version" value="BND_VERSION"/>
Stuart McCulloch0d710772008-02-19 08:34:01 +000042
43 <target name="get-bnd"
44 depends="test-offline"
45 description="Download BND tool"
46 unless="maven.mode.offline">
47 <mkdir dir="${maven.repo.local}"/>
48 <mkdir dir="${maven.repo.local}/biz/aQute/bnd/${bnd.version}"/>
49 <get src="http://www.aqute.biz/repo/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"
50 dest="${maven.repo.local}/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"
51 usetimestamp="true"
52 ignoreerrors="true"/>
53 </target>
54
Stuart McCulloch0d710772008-02-19 08:34:01 +000055 <target name="package" depends="compile,test,get-bnd" description="Package the bundle">
Stuart McCulloch37ec4e62008-05-16 04:39:32 +000056 <taskdef resource="aQute/bnd/ant/taskdef.properties">
57 <classpath>
58 <pathelement location="${maven.repo.local}/biz/aQute/bnd/${bnd.version}/bnd-${bnd.version}.jar"/>
59 </classpath>
60 </taskdef>
Stuart McCulloch0d710772008-02-19 08:34:01 +000061 <pathconvert property="bnd.classpath" refid="build.classpath" pathsep=","/>
Stuart McCullochee51abf2008-02-19 09:49:41 +000062 <bnd files="maven-build.bnd" classpath="${maven.build.outputDir},${bnd.classpath}"/>
Stuart McCulloch0d710772008-02-19 08:34:01 +000063 </target>
64
65</project>