[jboss-cvs] JBoss Messaging SVN: r7097 - in trunk/examples/core: embedded-remote and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu May 28 10:10:13 EDT 2009


Author: jmesnil
Date: 2009-05-28 10:10:12 -0400 (Thu, 28 May 2009)
New Revision: 7097

Modified:
   trunk/examples/core/embedded-remote/build.xml
   trunk/examples/core/embedded/build.xml
   trunk/examples/core/microcontainer/build.xml
Log:
Core examples

* in the run target, checks the return value of the java task 
  to fail the build if a problem occurs

Modified: trunk/examples/core/embedded/build.xml
===================================================================
--- trunk/examples/core/embedded/build.xml	2009-05-28 14:02:35 UTC (rev 7096)
+++ trunk/examples/core/embedded/build.xml	2009-05-28 14:10:12 UTC (rev 7097)
@@ -47,6 +47,13 @@
 	      <jvmarg value="-Xmx50M"/>
 	      <classpath refid="local.classpath"/>
 	   </java>
-      
+       <fail message="EmbeddedExample">
+          <condition>
+             <not>
+                <equals arg1="${example-result}" arg2="0"/>
+             </not>
+          </condition>
+       </fail>
+
    </target>
 </project>

Modified: trunk/examples/core/embedded-remote/build.xml
===================================================================
--- trunk/examples/core/embedded-remote/build.xml	2009-05-28 14:02:35 UTC (rev 7096)
+++ trunk/examples/core/embedded-remote/build.xml	2009-05-28 14:10:12 UTC (rev 7097)
@@ -69,6 +69,12 @@
 	   	  <sysproperty key="remote-classpath" value="${remote-classpath}"/>
 	      <classpath refid="local.classpath"/>
 	   </java>
-      
+       <fail message="EmbeddedRemoteExample failed">
+          <condition>
+             <not>
+                <equals arg1="${example-result}" arg2="0"/>
+             </not>
+          </condition>
+       </fail>
    </target>
 </project>

Modified: trunk/examples/core/microcontainer/build.xml
===================================================================
--- trunk/examples/core/microcontainer/build.xml	2009-05-28 14:02:35 UTC (rev 7096)
+++ trunk/examples/core/microcontainer/build.xml	2009-05-28 14:10:12 UTC (rev 7097)
@@ -71,6 +71,13 @@
 	      <jvmarg value="-Xmx50M"/>
 	      <classpath refid="local.classpath"/>
 	   </java>
-      
+       <fail message="EmbeddedMicroContainerExample failed">
+          <condition>
+             <not>
+                <equals arg1="${example-result}" arg2="0"/>
+             </not>
+          </condition>
+       </fail>
+
    </target>
 </project>




More information about the jboss-cvs-commits mailing list