Skip to content

Commit 2807ad1

Browse files
author
Rob Harrop
committed
Merge with default
2 parents add0f32 + 534c4fa commit 2807ad1

17 files changed

+70
-14
lines changed

build.properties

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1+
alt.javac.source=1.6
2+
alt.javac.target=1.6
13
build.out=build
2-
lib.out=${build.out}/lib
4+
bundle.name=RabbitMQ Java AMQP client library
5+
bundle.out=${build.out}/bundle
6+
bundle.symbolicName=com.rabbitmq.client
7+
bundlor.home=bundlor
38
dist.out=${build.out}/dist
4-
src.generated=${build.out}/gensrc
59
javac.debug=true
10+
javac.out=${build.out}/classes
11+
javadoc.out=build/doc/api
12+
lib.out=${build.out}/lib
13+
python.bin=python
14+
sibling.codegen.dir=../rabbitmq-codegen/
15+
spec.version=0.9.1
16+
src.generated=${build.out}/gensrc
617
standard.javac.source=1.5
718
standard.javac.target=1.5
8-
alt.javac.source=1.6
9-
alt.javac.target=1.6
10-
javac.out=${build.out}/classes
1119
test.javac.out=${build.out}/test/classes
1220
test.src.home=test/src
13-
sibling.codegen.dir=../rabbitmq-codegen/
14-
spec.version=0.9.1
15-
bundle.out=${build.out}/bundle
16-
javadoc.out=build/doc/api
17-
python.bin=python

build.xml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
2-
<project name="RabbitMQ Java client" default="build">
2+
<project name="RabbitMQ Java client" default="build"
3+
xmlns:bundlor="antlib:com.springsource.bundlor.ant">
34

45
<property file="build.properties"/>
56
<property file="config.properties"/>
@@ -386,7 +387,7 @@
386387
</junit>
387388
</target>
388389

389-
<target name="jar" depends="build">
390+
<target name="jar" depends="build, bundlor.do">
390391
<mkdir dir="${lib.out}"/>
391392
<antcall target="doJarWithTags">
392393
<param name="jar.name" value="rabbitmq-client"/>
@@ -410,7 +411,7 @@
410411
token="VERSION" value="${impl.version}"/>
411412
</target>
412413

413-
<target name="test-jar" depends="test-build">
414+
<target name="test-jar" depends="test-build, test-bundlor.do">
414415
<mkdir dir="${lib.out}"/>
415416
<antcall target="doJarWithTags">
416417
<param name="jar.name" value="rabbitmq-client-tests"/>
@@ -420,7 +421,8 @@
420421

421422
<target name="doJarWithTags">
422423
<jar destfile="${lib.out}/${jar.name}.jar"
423-
basedir="${base}">
424+
basedir="${base}"
425+
filesetmanifest="merge">
424426
<manifest>
425427
<section name="${jar.name}">
426428
<attribute name="Specification-Title" value="AMQP"/>
@@ -461,4 +463,36 @@
461463
<target name="clean-tests">
462464
<delete dir="build/test"/>
463465
</target>
466+
467+
<target name="bundlor.init">
468+
<taskdef resource="com/springsource/bundlor/ant/antlib.xml"
469+
uri="antlib:com.springsource.bundlor.ant">
470+
<classpath id="bundlor.classpath">
471+
<fileset dir="${bundlor.home}/dist"/>
472+
<fileset dir="${bundlor.home}/lib"/>
473+
</classpath>
474+
</taskdef>
475+
</target>
476+
477+
<target name="bundlor.do" depends="bundlor.init">
478+
<bundlor:bundlor
479+
inputPath="${javac.out}"
480+
outputPath="${javac.out}"
481+
manifestTemplatePath="bundlorTemplate.mf">
482+
<propertyset>
483+
<propertyref builtin="all"/>
484+
</propertyset>
485+
</bundlor:bundlor>
486+
</target>
487+
488+
<target name="test-bundlor.do" depends="bundlor.init">
489+
<bundlor:bundlor
490+
inputPath="${test.javac.out}"
491+
outputPath="${test.javac.out}"
492+
manifestTemplatePath="bundlorTestTemplate.mf">
493+
<propertyset>
494+
<propertyref builtin="all"/>
495+
</propertyset>
496+
</bundlor:bundlor>
497+
</target>
464498
</project>
131 KB
Binary file not shown.
16.6 KB
Binary file not shown.
13.3 KB
Binary file not shown.
Binary file not shown.
40.6 KB
Binary file not shown.
42.5 KB
Binary file not shown.
32.5 KB
Binary file not shown.
22 KB
Binary file not shown.

0 commit comments

Comments
 (0)