|
46 | 46 | unless="amqp.generate.notRequired" description="generate AMQP.java and AMQImpl.java from AMQP spec"> |
47 | 47 | <mkdir dir="${src.generated}/com/rabbitmq/client/"/> |
48 | 48 | <exec dir="." executable="${python.bin}" |
49 | | - errorproperty="amqp.generate.error1" |
| 49 | + errorproperty="amqp.generate.error1" |
50 | 50 | resultproperty="amqp.generate.result1"> |
51 | 51 | <arg line="codegen.py"/> |
52 | 52 | <arg line="header"/> |
53 | 53 | <arg line="${AMQP_SPEC_JSON_PATH}"/> |
54 | 54 | <arg line="${src.generated}/com/rabbitmq/client/AMQP.java"/> |
55 | 55 | </exec> |
56 | | - <fail message="Generation of AMQP.java failed with message:${line.separator}${amqp.generate.error1}"> |
| 56 | + <fail message="Generation of AMQP.java failed with message:${line.separator}${amqp.generate.error1}"> |
57 | 57 | <condition> |
58 | 58 | <not> |
59 | 59 | <equals arg1="${amqp.generate.result1}" arg2="0" /> |
|
69 | 69 | <arg line="${AMQP_SPEC_JSON_PATH}"/> |
70 | 70 | <arg line="${src.generated}/com/rabbitmq/client/impl/AMQImpl.java"/> |
71 | 71 | </exec> |
72 | | - <fail message="Generation of AMQPImpl.java failed with message:${line.separator}${amqp.generate.error2}"> |
73 | | - <condition> |
74 | | - <not> |
75 | | - <equals arg1="${amqp.generate.result2}" arg2="0" /> |
76 | | - </not> |
77 | | - </condition> |
78 | | - </fail> |
| 72 | + <fail message="Generation of AMQPImpl.java failed with message:${line.separator}${amqp.generate.error2}"> |
| 73 | + <condition> |
| 74 | + <not> |
| 75 | + <equals arg1="${amqp.generate.result2}" arg2="0" /> |
| 76 | + </not> |
| 77 | + </condition> |
| 78 | + </fail> |
79 | 79 | </target> |
80 | 80 |
|
81 | 81 | <target name="build" depends="amqp-generate" description="Build the client library."> |
82 | 82 | <mkdir dir="${javac.out}"/> |
83 | 83 | <copy file="src/com/rabbitmq/client/impl/ClientVersion.java.in" |
84 | | - tofile="${src.generated}/com/rabbitmq/client/impl/ClientVersion.java"> |
| 84 | + tofile="${src.generated}/com/rabbitmq/client/impl/ClientVersion.java"> |
85 | 85 | <filterset> |
86 | | - <filter token="VERSION" value="${impl.version}"/> |
| 86 | + <filter token="VERSION" value="${impl.version}"/> |
87 | 87 | </filterset> |
88 | 88 | </copy> |
89 | 89 | <javac destdir="${javac.out}" |
90 | | - classpathref="javac.classpath" |
91 | | - source="${standard.javac.source}" |
92 | | - target="${standard.javac.target}" |
93 | | - debug="${javac.debug}"> |
| 90 | + classpathref="javac.classpath" |
| 91 | + source="${standard.javac.source}" |
| 92 | + target="${standard.javac.target}" |
| 93 | + debug="${javac.debug}"> |
94 | 94 | <src path="src"/> |
95 | 95 | <src path="${src.generated}"/> |
96 | 96 | </javac> |
|
179 | 179 | </target> |
180 | 180 |
|
181 | 181 | <target name="test-prepare"> |
182 | | - <property name="haltOnFailureJunit" value="yes" /> |
183 | | - <property name="haltOnFailureJava" value="true" /> |
| 182 | + <property name="haltOnFailureJunit" value="yes" /> |
| 183 | + <property name="haltOnFailureJava" value="true" /> |
184 | 184 | </target> |
185 | 185 |
|
186 | 186 | <target name="test-build" depends="test-prepare"> |
187 | | - <antcall target="test-build-param"> |
188 | | - <param name="javac.source" value="${standard.javac.source}"/> |
189 | | - <param name="javac.target" value="${standard.javac.target}"/> |
190 | | - </antcall> |
| 187 | + <antcall target="test-build-param"> |
| 188 | + <param name="javac.source" value="${standard.javac.source}"/> |
| 189 | + <param name="javac.target" value="${standard.javac.target}"/> |
| 190 | + </antcall> |
191 | 191 | </target> |
192 | 192 |
|
193 | 193 | <target name="test-build-alt" depends="test-prepare"> |
194 | | - <antcall target="test-build-param"> |
195 | | - <param name="javac.source" value="${alt.javac.source}"/> |
196 | | - <param name="javac.target" value="${alt.javac.target}"/> |
197 | | - </antcall> |
| 194 | + <antcall target="test-build-param"> |
| 195 | + <param name="javac.source" value="${alt.javac.source}"/> |
| 196 | + <param name="javac.target" value="${alt.javac.target}"/> |
| 197 | + </antcall> |
198 | 198 | </target> |
199 | 199 |
|
200 | 200 | <!-- Used to rebuild the tests every time, ( dependency on clean-tests ) |
|
299 | 299 | </target> |
300 | 300 |
|
301 | 301 | <target name="test-suite-prepare"> |
302 | | - <property name="haltOnFailureJunit" value="no" /> |
303 | | - <property name="haltOnFailureJava" value="false" /> |
| 302 | + <property name="haltOnFailureJunit" value="no" /> |
| 303 | + <property name="haltOnFailureJava" value="false" /> |
304 | 304 | </target> |
305 | 305 |
|
306 | 306 | <target name="test-suite" depends="test-suite-prepare, test-suite-run" description="Run all test suites."> |
307 | | - <fail message="Errors occured in tests"> |
308 | | - <condition> |
309 | | - <not> |
310 | | - <equals arg1="${test.failure}" arg2="" /> |
311 | | - </not> |
312 | | - </condition> |
313 | | - </fail> |
| 307 | + <fail message="Errors occured in tests"> |
| 308 | + <condition> |
| 309 | + <not> |
| 310 | + <equals arg1="${test.failure}" arg2="" /> |
| 311 | + </not> |
| 312 | + </condition> |
| 313 | + </fail> |
314 | 314 | </target> |
315 | 315 |
|
316 | 316 | <target name="test-suite-run" depends="test-client, test-ssl, test-server, test-functional, test-main-silent"/> |
|
418 | 418 | <param name="base" value="${test.javac.out}"/> |
419 | 419 | </antcall> |
420 | 420 | </target> |
421 | | - |
422 | | - <target name="doJarWithTags"> |
423 | | - <jar destfile="${lib.out}/${jar.name}.jar" |
424 | | - basedir="${base}" |
425 | | - filesetmanifest="merge"> |
426 | | - <manifest> |
427 | | - <section name="${jar.name}"> |
428 | | - <attribute name="Specification-Title" value="AMQP"/> |
429 | | - <attribute name="Specification-Version" value="${spec.version}"/> |
430 | | - <attribute name="Specification-Vendor" value="AMQP Working Group (www.amqp.org)"/> |
431 | | - <attribute name="Implementation-Title" value="RabbitMQ"/> |
432 | | - <attribute name="Implementation-Version" value="${impl.version}"/> |
433 | | - <attribute name="Implementation-Vendor" value="Rabbit Technologies Ltd. (www.rabbitmq.com)"/> |
434 | | - </section> |
435 | | - </manifest> |
436 | | - </jar> |
437 | | - </target> |
| 421 | + |
| 422 | + <target name="doJarWithTags"> |
| 423 | + <jar destfile="${lib.out}/${jar.name}.jar" |
| 424 | + basedir="${base}" |
| 425 | + filesetmanifest="merge"> |
| 426 | + <manifest> |
| 427 | + <section name="${jar.name}"> |
| 428 | + <attribute name="Specification-Title" value="AMQP"/> |
| 429 | + <attribute name="Specification-Version" value="${spec.version}"/> |
| 430 | + <attribute name="Specification-Vendor" value="AMQP Working Group (www.amqp.org)"/> |
| 431 | + <attribute name="Implementation-Title" value="RabbitMQ"/> |
| 432 | + <attribute name="Implementation-Version" value="${impl.version}"/> |
| 433 | + <attribute name="Implementation-Vendor" value="Rabbit Technologies Ltd. (www.rabbitmq.com)"/> |
| 434 | + </section> |
| 435 | + </manifest> |
| 436 | + </jar> |
| 437 | + </target> |
438 | 438 |
|
439 | 439 | <target name="dist" depends="jar, test-jar"> |
440 | 440 | <mkdir dir="${dist.out}"/> |
441 | 441 | <copy todir="${dist.out}"> |
442 | 442 | <!-- ant doesn't seem to provide any form of usable abstraction over sets of file names --> |
443 | 443 | <!-- consequently we repeat ourselves here. see definition of javac.classpath, supra --> |
444 | 444 | <fileset dir="lib"> |
445 | | - <include name="**/*.jar"/> |
| 445 | + <include name="**/*.jar"/> |
446 | 446 | </fileset> |
447 | 447 |
|
448 | 448 | <fileset dir="${lib.out}"> |
449 | | - <include name="**/*.jar"/> |
| 449 | + <include name="**/*.jar"/> |
450 | 450 | </fileset> |
451 | 451 |
|
452 | 452 | <fileset dir="scripts"> |
|
0 commit comments