-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
38 lines (33 loc) · 1.46 KB
/
build.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
<project name="RabbitOSGi" default="bundles">
<path id="libs">
<pathelement location="runtime/equinox.jar"/>
<pathelement location="runtime/org.apache.commons.io_1.2.0.jar"/>
<pathelement location="runtime/com.rabbitmq.client_1.5.0.beta.jar"/>
<pathelement location="runtime/osgi.cmpn.jar"/>
<pathelement location="runtime/org.apache.log4j_1.2.15.jar"/>
</path>
<!-- =================================
target: compile
================================= -->
<target name="compile" depends="" description="Compile Sources">
<mkdir dir="classes"/>
<javac srcdir="src" destdir="classes" debug="on" classpathref="libs"/>
</target>
<!-- =================================
target: bundles
================================= -->
<target name="bundles" depends="compile" description="Build OSGi Bundles">
<taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="bnd-0.0.255.jar"/>
<pathconvert property="bndfiles" pathsep="," dirsep="/">
<fileset dir="load" includes="*.bnd"/>
</pathconvert>
<bnd classpath="classes" failok="false" files="${bndfiles}" output="load"/>
</target>
<!-- =================================
target: clean
================================= -->
<target name="clean" depends="" description="Clean Outputs">
<delete dir="load" includes="*.jar"/>
<delete dir="classes"/>
</target>
</project>