forked from mockito/mockito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-ant.xml
57 lines (49 loc) · 1.82 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!--
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"/>
<property name="jar.all.path" value="build/libs/mockito-all-${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="bndAll">
<delete file="${jar.all.path}.bnd"/>
<bnd
classpath="${jar.all.path}"
eclipse="false"
failok="false"
exceptions="true"
sourcepath="src"
destfile="${jar.all.path}.bnd"
files="conf/mockito-all.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>
<target name="osgify.mockito-all" depends="bndAll">
<zip update="true" destfile="${jar.all.path}">
<zipfileset src="${jar.all.path}.bnd" >
<include name="META-INF/MANIFEST.MF"/>
</zipfileset>
</zip>
</target>
</project>