[jboss-cvs] JBoss Messaging SVN: r7349 - trunk/examples/jms/embedded.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jun 15 13:19:11 EDT 2009
Author: jmesnil
Date: 2009-06-15 13:19:11 -0400 (Mon, 15 Jun 2009)
New Revision: 7349
Modified:
trunk/examples/jms/embedded/build.xml
Log:
JMS Embedded example
* make the Ant target fail if the example does not complete successfully
Modified: trunk/examples/jms/embedded/build.xml
===================================================================
--- trunk/examples/jms/embedded/build.xml 2009-06-15 17:06:23 UTC (rev 7348)
+++ trunk/examples/jms/embedded/build.xml 2009-06-15 17:19:11 UTC (rev 7349)
@@ -54,5 +54,15 @@
<jvmarg value="-Xmx50M"/>
<classpath refid="local.classpath"/>
</java>
+
+ <!-- if the example exited with a result value != 0, we fail the build -->
+ <fail message="Example ${example.classname} failed">
+ <condition>
+ <not>
+ <equals arg1="${example-result}" arg2="0"/>
+ </not>
+ </condition>
+ </fail>
+
</target>
</project>
More information about the jboss-cvs-commits
mailing list