[jboss-svn-commits] JBL Code SVN: r37176 - in labs/jbosstm/trunk/ArjunaCore/quickstarts: txoj and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jun 30 07:16:46 EDT 2011


Author: tomjenkinson
Date: 2011-06-30 07:16:46 -0400 (Thu, 30 Jun 2011)
New Revision: 37176

Added:
   labs/jbosstm/trunk/ArjunaCore/quickstarts/readme.txt
   labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.bat
   labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.sh
   labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/readme.txt
   labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.bat
   labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.sh
Removed:
   labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/README
Log:
JBTM-854 update to reflect the fact we need a readme.txt and scripts to run the examples automatically

Added: labs/jbosstm/trunk/ArjunaCore/quickstarts/readme.txt
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/quickstarts/readme.txt	                        (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/quickstarts/readme.txt	2011-06-30 11:16:46 UTC (rev 37176)
@@ -0,0 +1,22 @@
+JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware 
+LLC, and others contributors as indicated by the @authors tag. All rights 
+reserved. See the copyright.txt in the distribution for a full listing of 
+individual contributors. This copyrighted material is made available to anyone 
+wishing to use, modify, copy, or redistribute it subject to the terms and 
+conditions of the GNU Lesser General Public License, v. 2.1. This program 
+is distributed in the hope that it will be useful, but WITHOUT A WARRANTY; 
+without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+PURPOSE. See the GNU Lesser General Public License for more details. You 
+should have received a copy of the GNU Lesser General Public License, v.2.1 
+along with this distribution; if not, write to the Free Software Foundation, 
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
+
+
+OVERVIEW
+--------
+All the quickstarts related to ArjunaCore are found in this folder structure. Each quickstart has a readme.txt to show how to execute the quickstart and what is happening in it. Each quickstart also contains a script to run the quickstart automatically and check the result automatically.
+
+
+USAGE
+-----
+cd into the required quickstart and follow the readme.txt or call the run.[sh|bat] file

Added: labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.bat
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.bat	                        (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.bat	2011-06-30 11:16:46 UTC (rev 37176)
@@ -0,0 +1,17 @@
+ at echo off
+
+echo "Running all quickstarts"
+
+set OLDPWD=%cd%
+
+for /R * %%i in (.) do (
+	if exist %%i\run.sh (
+ 		cd %%i
+ 		call run.bat %*
+		IF %ERRORLEVEL% NEQ 0 exit -1
+	)
+)
+
+cd /d %OLDPWD%
+
+echo "All quickstarts ran OK"

Added: labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.sh
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.sh	                        (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.sh	2011-06-30 11:16:46 UTC (rev 37176)
@@ -0,0 +1,16 @@
+# ALLOW JOBS TO BE BACKGROUNDED
+set -m
+
+echo "Running all quickstarts"
+
+for i in `find * -name run.sh | sed 's#\(.*\)/.*#\1#' |sort -u`
+do
+    cd $i
+    ./run.sh
+    if [ "$?" != "0" ]; then
+	    exit -1
+    fi
+    cd -
+done
+
+echo "All quickstarts ran OK"


Property changes on: labs/jbosstm/trunk/ArjunaCore/quickstarts/run_all_quickstarts.sh
___________________________________________________________________
Added: svn:executable
   + *

Deleted: labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/README
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/README	2011-06-30 11:05:52 UTC (rev 37175)
+++ labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/README	2011-06-30 11:16:46 UTC (rev 37176)
@@ -1,36 +0,0 @@
-JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware 
-LLC, and others contributors as indicated by the @authors tag. All rights 
-reserved. See the copyright.txt in the distribution for a full listing of 
-individual contributors. This copyrighted material is made available to anyone 
-wishing to use, modify, copy, or redistribute it subject to the terms and 
-conditions of the GNU Lesser General Public License, v. 2.1. This program 
-is distributed in the hope that it will be useful, but WITHOUT A WARRANTY; 
-without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
-PURPOSE. See the GNU Lesser General Public License for more details. You 
-should have received a copy of the GNU Lesser General Public License, v.2.1 
-along with this distribution; if not, write to the Free Software Foundation, 
-Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
-
-
-OVERVIEW
---------
-This shows an example of how to introduce TXOJ to your project
-
-
-USAGE
------
-mvn compile exec:exec
-
-
-EXPECTED OUTPUT
----------------
-As well as the maven output you would normally expect, you should also see the following:
-
-9-Jun-2011 17:24:51 com.arjuna.ats.arjuna.recovery.TransactionStatusManager addService
-INFO: ARJUNA12163: Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 44448
-29-Jun-2011 17:24:51 com.arjuna.ats.internal.arjuna.recovery.TransactionStatusManagerItem <init>
-INFO: ARJUNA12337: TransactionStatusManagerItem host: 127.0.0.1 port: 44448
-29-Jun-2011 17:24:51 com.arjuna.ats.arjuna.recovery.TransactionStatusManager start
-INFO: ARJUNA12170: TransactionStatusManager started on port 44448 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
-Created persistent object 0:ffff7f000001:ac45:4e0b51d3:0
-Atomic object operated as expected

Copied: labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/readme.txt (from rev 37174, labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/README)
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/readme.txt	                        (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/readme.txt	2011-06-30 11:16:46 UTC (rev 37176)
@@ -0,0 +1,45 @@
+JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware 
+LLC, and others contributors as indicated by the @authors tag. All rights 
+reserved. See the copyright.txt in the distribution for a full listing of 
+individual contributors. This copyrighted material is made available to anyone 
+wishing to use, modify, copy, or redistribute it subject to the terms and 
+conditions of the GNU Lesser General Public License, v. 2.1. This program 
+is distributed in the hope that it will be useful, but WITHOUT A WARRANTY; 
+without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+PURPOSE. See the GNU Lesser General Public License for more details. You 
+should have received a copy of the GNU Lesser General Public License, v.2.1 
+along with this distribution; if not, write to the Free Software Foundation, 
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
+
+
+OVERVIEW
+--------
+This shows an example of how to introduce TXOJ to your project
+
+
+USAGE
+-----
+mvn compile exec:exec
+
+OR
+--
+./run.[sh|bat]
+
+
+EXPECTED OUTPUT
+---------------
+As well as the maven output you would normally expect, you should also see the following:
+
+9-Jun-2011 17:24:51 com.arjuna.ats.arjuna.recovery.TransactionStatusManager addService
+INFO: ARJUNA12163: Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 44448
+29-Jun-2011 17:24:51 com.arjuna.ats.internal.arjuna.recovery.TransactionStatusManagerItem <init>
+INFO: ARJUNA12337: TransactionStatusManagerItem host: 127.0.0.1 port: 44448
+29-Jun-2011 17:24:51 com.arjuna.ats.arjuna.recovery.TransactionStatusManager start
+INFO: ARJUNA12170: TransactionStatusManager started on port 44448 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
+Created persistent object 0:ffff7f000001:ac45:4e0b51d3:0
+Atomic object operated as expected
+
+
+WHAT HAPPENED?
+--------------
+We created a transactional object and modified its state in an ACI property transaction (Atomic, Consistent and Isolated, but not Durable)

Added: labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.bat
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.bat	                        (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.bat	2011-06-30 11:16:46 UTC (rev 37176)
@@ -0,0 +1,6 @@
+ at echo off
+
+echo "Running quickstart"
+
+mvn compile exec:exec
+IF %ERRORLEVEL% NEQ 0 exit -1


Property changes on: labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.bat
___________________________________________________________________
Added: svn:executable
   + *

Added: labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.sh
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.sh	                        (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.sh	2011-06-30 11:16:46 UTC (rev 37176)
@@ -0,0 +1,9 @@
+# ALLOW JOBS TO BE BACKGROUNDED
+set -m
+
+echo "Running quickstart"
+
+mvn compile exec:exec
+if [ "$?" != "0" ]; then
+	exit -1
+fi


Property changes on: labs/jbosstm/trunk/ArjunaCore/quickstarts/txoj/run.sh
___________________________________________________________________
Added: svn:executable
   + *



More information about the jboss-svn-commits mailing list