|
1 | 1 | <?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"> |
3 | 4 |
|
4 | 5 | <property file="build.properties"/> |
5 | 6 | <property file="config.properties"/> |
|
386 | 387 | </junit> |
387 | 388 | </target> |
388 | 389 |
|
389 | | - <target name="jar" depends="build"> |
| 390 | + <target name="jar" depends="build, bundlor.do"> |
390 | 391 | <mkdir dir="${lib.out}"/> |
391 | 392 | <antcall target="doJarWithTags"> |
392 | 393 | <param name="jar.name" value="rabbitmq-client"/> |
|
410 | 411 | token="VERSION" value="${impl.version}"/> |
411 | 412 | </target> |
412 | 413 |
|
413 | | - <target name="test-jar" depends="test-build"> |
| 414 | + <target name="test-jar" depends="test-build, test-bundlor.do"> |
414 | 415 | <mkdir dir="${lib.out}"/> |
415 | 416 | <antcall target="doJarWithTags"> |
416 | 417 | <param name="jar.name" value="rabbitmq-client-tests"/> |
|
420 | 421 |
|
421 | 422 | <target name="doJarWithTags"> |
422 | 423 | <jar destfile="${lib.out}/${jar.name}.jar" |
423 | | - basedir="${base}"> |
| 424 | + basedir="${base}" |
| 425 | + filesetmanifest="merge"> |
424 | 426 | <manifest> |
425 | 427 | <section name="${jar.name}"> |
426 | 428 | <attribute name="Specification-Title" value="AMQP"/> |
|
461 | 463 | <target name="clean-tests"> |
462 | 464 | <delete dir="build/test"/> |
463 | 465 | </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> |
464 | 498 | </project> |
0 commit comments