forked from mockito/mockito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-ant.xml
36 lines (30 loc) · 1.12 KB
/
build-ant.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!--
Copyright (c) 2007 Mockito contributors
This program is made available under the terms of the MIT License.
-->
<project name="mockito" basedir=".">
<loadproperties srcfile="version.properties" />
<path id="ant.classpath">
<fileset dir="lib/build" includes="*bnd*" />
</path>
<property name="jar.core.path" value="build/libs/mockito-core-${version}.jar"/>
<taskdef resource="aQute/bnd/ant/taskdef.properties" classpathref="ant.classpath"/>
<target name="bndCore">
<delete file="${jar.core.path}.bnd"/>
<bnd
classpath="${jar.core.path}"
eclipse="false"
failok="false"
exceptions="true"
sourcepath="src"
destfile="${jar.core.path}.bnd"
files="conf/mockito-core.bnd"/>
</target>
<target name="osgify.mockito-core" depends="bndCore">
<zip update="true" destfile="${jar.core.path}" >
<zipfileset src="${jar.core.path}.bnd" >
<include name="META-INF/MANIFEST.MF"/>
</zipfileset>
</zip>
</target>
</project>