[jboss-cvs] JBossAS SVN: r103888 - in branches/JBPAPP_4_2_0_GA_CP/testsuite: imports and 12 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 13 03:23:25 EDT 2010


Author: istudens at redhat.com
Date: 2010-04-13 03:23:23 -0400 (Tue, 13 Apr 2010)
New Revision: 103888

Added:
   branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/config/tests-crash-recovery.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/sections/jbossts.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/as-tests.xml
Removed:
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/JTSContextPropagation01/
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/recovery/TestASRecoveryWithJTSPropagation.java
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/txpropagation/
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/jts-propagation/
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/sybase12-xa-ds.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/as-tests.xml
Modified:
   branches/JBPAPP_4_2_0_GA_CP/testsuite/build.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/config/configs.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/test-jars.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/ASCrashRecovery01/TestWithJPA.java
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/ASTestConfig.java
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/ServerTask.java
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/TransactionLog.java
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/sybase15-xa-ds.xml
   branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/imports/test-config.xml
Log:
moved jbossts crash recovery tests from AS trunk, this affects only the testsuite, JBPAPP-4091

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/build.xml
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/build.xml	2010-04-13 06:32:20 UTC (rev 103887)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/build.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -190,6 +190,8 @@
     <path refid="glassfish.javamail.classpath"/>
     <path refid="sun.servlet.classpath"/>
     <path refid="trove.classpath"/>
+    <path refid="hibernate.entitymanager.classpath"/>
+    <path refid="jboss.jbossts14.classpath"/>
   </path>
 
   <!-- ======= -->

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/config/configs.xml
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/config/configs.xml	2010-04-13 06:32:20 UTC (rev 103887)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/config/configs.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -10,5 +10,6 @@
 <!-- Import all the xml files that define targets that require a separate
     JBoss Server Configuration -->
 <import file="tests-jacc.xml"/>
+<import file="tests-crash-recovery.xml"/>
 
 </project>

Copied: branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/config/tests-crash-recovery.xml (from rev 103255, trunk/testsuite/imports/config/tests-crash-recovery.xml)
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/config/tests-crash-recovery.xml	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/config/tests-crash-recovery.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -0,0 +1,133 @@
+<?xml version="1.0"?>
+
+<!--
+   | Targets that run JBossTS crash recovery tests 
+-->
+ 
+<!-- $Id$ -->
+<project name="main.server.config.jbossts.crashrecovery" xmlns:server="http://jboss.org/ns/test/ant/server">
+
+
+   <property name="jbossts.crash.recovery.test.dir" value="jbossts" />
+   <property name="jbossts.crash.recovery.test.script.dir" value="${jbossts.crash.recovery.test.dir}/scripts" />
+   <property name="jbossts.crash.recovery.test.resource.dir" value="${jbossts.crash.recovery.test.dir}/resources" />
+	
+  <!--
+    | Targets
+  -->
+
+   <!-- 
+    | JBQA-2176 - JBossTS crash recovery tests.
+    |
+    | Usage for all tests:
+    |    ./build.sh tests-ts-crash-recovery
+    |     
+    |  or for a database:
+    |    ./build.sh tests-ts-crash-recovery -Djbossts.db=psql_8.3 -Djbossts.target=crash-tests-single-db
+    |     
+    |  or for a test scenario:
+    |    ./build.sh tests-ts-crash-recovery -Djbossts.db=psql_8.3 -Djbossts.tstype=jts -Djbossts.tsdemarc=bmt -Djbossts.testcase=none.rev -Djbossts.target=crash-tests-single
+    |
+    | Note: If you want to force the wiping out any txs in doubt from DB before the test you can use the property -DwipeOutTxsInDoubtBeforeTest=true. 
+    -->
+   <target name="tests-ts-crash-recovery"
+           description="Runs JBossTS crash recovery tests">
+
+      <available file="${jboss.dist}/server/crashrecovery-jta" property="have.crash.recovery.profile" value="true"/>
+      <antcall target="prepare-crashrec-profile" />
+   	
+      <property name="jbossts.target" value="crash-tests" />
+      <property name="jbossts.max.time" value="420000" />
+      <property name="jbossts.tstype" value="jta" />
+
+      <run-as-test target="${jbossts.target}" />
+
+   </target>
+
+
+  <!--
+    | Macros and others
+  -->
+
+   <macrodef name="run-as-test">
+      <attribute name="target"/>
+      <sequential>
+         <echo message="starting of ${build.resources}/${jbossts.crash.recovery.test.script.dir}/as-tests.xml"/>
+         <java classname="org.apache.tools.ant.launch.Launcher" fork="true" failonerror="true">
+            <classpath>
+               <pathelement location="${build.lib}/crashrecovery-astest.jar"/>
+               <pathelement location="${ant.library.dir}/ant-launcher.jar"/>
+               <path refid="apache.ant.classpath"/>
+               <path refid="apache.ant.junit.classpath"/>
+               <path refid="junit.junit.classpath"/>
+               <path refid="hibernate.entitymanager.classpath"/>
+               <path refid="jboss.jbossts14.classpath"/>
+               <path refid="jboss.test.classpath"/>
+               <fileset dir="${jbosstest.dist}/client"/>
+            </classpath>
+            <sysproperty key="ant.home" value="${ant.home}"/>
+            <sysproperty key="ant.library.dir" value="${ant.library.dir}"/>
+            <sysproperty key="java.security.policy" value="${build.resources}/${jbossts.crash.recovery.test.resource.dir}/java.policy"/>
+            <sysproperty key="product.dir" value="${build.resources}/${jbossts.crash.recovery.test.dir}" />
+            <sysproperty key="jboss.home" value="${jbosstest.dist}" />
+            <sysproperty key="jboss.dist" value="${jboss.dist}" />
+            <sysproperty key="astest.jar.dir" value="${build.lib}" />
+            <sysproperty key="astest.jar.name" value="crashrecovery-astest.jar" />
+            <sysproperty key="astest.jar.deploy.dir" value="../../lib" />
+            <sysproperty key="build.reports" value="${build.reports}" />
+            <sysproperty key="jbossas.startup.timeout" value="480" />
+            <sysproperty key="jbossas.shutdown.timeout" value="240" />
+            <sysproperty key="wipeOutTxsInDoubtBeforeTest" value="${wipeOutTxsInDoubtBeforeTest}" />
+            <sysproperty key="jbossts.db" value="${jbossts.db}" />
+            <sysproperty key="jbossts.tstype" value="${jbossts.tstype}" />
+            <sysproperty key="jbossts.tsdemarc" value="${jbossts.tsdemarc}" />
+            <sysproperty key="jbossts.testcase" value="${jbossts.testcase}" />
+            <sysproperty key="testTime" value="${jbossts.max.time}" />
+            <env key="JBOSS_HOME" value="${jbosstest.dist}" />
+            <arg value="-f"/>
+            <arg value="${build.resources}/${jbossts.crash.recovery.test.script.dir}/as-tests.xml"/>
+            <arg value="@{target}"/>
+         	<!--jvmarg value="-Xdebug"/>
+         	<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/-->
+         </java>
+      </sequential>
+   </macrodef>
+   
+   
+   <target name="prepare-crashrec-profile" unless="have.crash.recovery.profile">
+      <delete dir="${jboss.dist}/server/crashrecovery-jta" />
+      <create-config baseconf="default" newconf="crashrecovery-jta">
+         <patternset>
+            <include name="conf/**"/>
+            <include name="deploy/**"/>
+            <include name="deployers/**"/>
+            <include name="lib/**"/>
+         </patternset>
+      </create-config>
+
+      <setup-crash-recovery conf="crashrecovery-jta"/>
+   </target>
+  
+    <macrodef name="setup-crash-recovery">
+       <attribute name="conf"/>
+       <sequential>
+          <!-- enable crash recovery and point it to our datasource -->
+            <replace file="${jboss.dist}/server/@{conf}/conf/jbossjta-properties.xml">
+               <replacetoken><![CDATA[</transaction-service>]]></replacetoken>
+               <replacevalue><![CDATA[
+     <properties depends="arjuna" name="jta">
+        <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery1" value= "com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=CrashRecoveryDS"/>
+        <!-- xaRecoveryNode should match value in nodeIdentifier or be * -->
+        <property name="com.arjuna.ats.jta.xaRecoveryNode" value="1"/>
+     </properties>
+ </transaction-service>]]></replacevalue>
+            </replace>
+          <!-- more verbose logging -->
+            <replace file="${jboss.dist}/server/@{conf}/conf/jbossjta-properties.xml">
+               <replacetoken><![CDATA[type="System" value="0x00000000"]]></replacetoken>
+               <replacevalue><![CDATA[type="System" value="0xffffffff"]]></replacevalue>
+            </replace>
+       </sequential>
+    </macrodef>
+
+</project>

Copied: branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/sections/jbossts.xml (from rev 103255, trunk/testsuite/imports/sections/jbossts.xml)
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/sections/jbossts.xml	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/sections/jbossts.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -0,0 +1,22 @@
+<project name="tests-jbossts-jars">
+   <target name="_jars-jbossts" depends="jbqa2176"/>
+   
+   <!-- JBossTS crash recovery tests -->
+   <target name="jbqa2176">
+      <jar destfile="${build.lib}/crashrecovery-astest.jar">
+         <fileset dir="${build.resources}/jbossts/crashrecovery">
+            <include name="META-INF/*.xml"/>
+         </fileset>
+         <fileset dir="${build.resources}/jbossts/resources">
+            <include name="java.policy"/>
+         </fileset>
+         <fileset dir="${build.classes}">
+            <include name="org/jboss/test/jbossts/ASCrashRecovery01/*.class"/>
+            <include name="org/jboss/test/jbossts/crash/*.class"/>
+            <include name="org/jboss/test/jbossts/recovery/*.class"/>
+            <include name="org/jboss/test/jbossts/taskdefs/*.class"/>
+         </fileset>
+      </jar>
+   </target>
+
+</project>

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/test-jars.xml
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/test-jars.xml	2010-04-13 06:32:20 UTC (rev 103887)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/imports/test-jars.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -36,6 +36,7 @@
 	<import file="sections/isolation.xml"/>
 	<import file="sections/jbossmq.xml"/>
 	<import file="sections/jbossmx.xml"/>
+	<import file="sections/jbossts.xml"/>
 	<import file="sections/jca.xml"/>
 	<import file="sections/jms.xml"/>
 	<import file="sections/jmsra.xml"/>
@@ -117,6 +118,7 @@
       _jars-isolation,
       _jars-jbossmq,
       _jars-jbossmx,
+      _jars-jbossts,
       _jars-jca,
       _jars-jcaprops,
       _jars-jms,

Copied: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts (from rev 103102, trunk/testsuite/src/main/org/jboss/test/jbossts)

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/ASCrashRecovery01/TestWithJPA.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossts/ASCrashRecovery01/TestWithJPA.java	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/ASCrashRecovery01/TestWithJPA.java	2010-04-13 07:23:23 UTC (rev 103888)
@@ -372,7 +372,7 @@
       }
       catch (RuntimeException re)
       {
-         if (re.getCause() instanceof HeuristicMixedException)  //FIXME unreachable condition?
+         if (re.getCause() instanceof javax.transaction.RollbackException)
          {
             // try to recover, this failure was expected maybe?!
             print("Failure was expected (maybe): " + re.getMessage());

Deleted: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/recovery/TestASRecoveryWithJTSPropagation.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossts/recovery/TestASRecoveryWithJTSPropagation.java	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/recovery/TestASRecoveryWithJTSPropagation.java	2010-04-13 07:23:23 UTC (rev 103888)
@@ -1,159 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY 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 along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.jbossts.recovery;
-
-import javax.ejb.EJBTransactionRolledbackException;
-import javax.transaction.Transaction;
-
-import org.jboss.logging.Logger;
-import org.jboss.remoting.CannotConnectException;
-import org.jboss.test.jbossts.txpropagation.EJBUtils;
-import org.jboss.test.jbossts.txpropagation.ejb2.TxPropagationEJB2Rem;
-import org.jboss.test.jbossts.txpropagation.ejb3.TxPropagationRem;
-
-/**
- * Extends TestASRecovery class by calling an ejb bean on a remote host.
- */
-public class TestASRecoveryWithJTSPropagation extends TestASRecoveryWithJPA
-{
-   private static Logger log = Logger.getLogger(TestASRecoveryWithJTSPropagation.class);
-
-   private String remoteHost = null;
-   private int remoteJndiPort = 1099;
-   private int remoteCorbaPort = 3528;
-   private ASFailureSpec[] fSpecsRemoteNode = null;
-   private String testEntityPKRemoteNode = null;
-   private boolean expectFailureOnRemoteNode = false;
-   
-   private boolean useOTS = false;
-   private boolean useEJB3 = false;
-
-   
-   /**
-    * Calls update of a test entity.
-    */
-   @Override
-   protected boolean addTxResources(Transaction tx)
-   {
-      boolean result = super.addTxResources(tx);
-      result = result && callRemoteBean();
-      
-      return result;
-   }
-
-   private boolean callRemoteBean()
-   {
-      if (remoteHost == null)
-         return true;
-      
-      
-      log.info("calling remote bean with params; remote host " + remoteHost + ", useEJB3 " + useEJB3 + ", useOTS " + useOTS);
-      
-      try
-      {
-         String result = null;
-         
-         if (useEJB3)
-         {
-            TxPropagationRem cr = EJBUtils.lookupTxPropagationBeanEJB3(remoteHost, remoteJndiPort, remoteCorbaPort, useOTS);
-            result = cr.testXA(fSpecsRemoteNode, testEntityPKRemoteNode);
-         }
-         else 
-         {
-            TxPropagationEJB2Rem cr = EJBUtils.lookupTxPropagationBeanEJB2(remoteHost, remoteJndiPort, remoteCorbaPort, useOTS);
-            result = cr.testXA(fSpecsRemoteNode, testEntityPKRemoteNode);
-         }
-         
-         log.info("result = " + result);
-         return "Passed".equalsIgnoreCase(result);
-      }
-      catch (CannotConnectException e)
-      {
-         if (expectFailureOnRemoteNode)
-         {
-            // try to recover, this failure was expected
-            log.info("Failure was expected: " + e.getMessage(), e);
-            throw e;
-         }
-         else
-         {
-            log.error(e);
-            e.printStackTrace();
-         }
-      }
-      catch (EJBTransactionRolledbackException re)
-      {
-         // try to recover, this failure was expected maybe?!
-         log.info("Failure was expected (maybe): " + re.getMessage(), re);
-         throw re;
-      }
-      catch (Throwable t)
-      {
-         log.error(t);
-         t.printStackTrace();
-      }
-
-      return false;
-   }
-
-   
-   public void setRemoteHost(String remoteHost)
-   {
-      this.remoteHost = remoteHost;
-   }
-
-   public void setfSpecsRemoteNode(ASFailureSpec[] fSpecsRemoteNode)
-   {
-      this.fSpecsRemoteNode = fSpecsRemoteNode;
-   }
-
-   public void setTestEntityPKRemoteNode(String testEntityPKRemoteNode)
-   {
-      this.testEntityPKRemoteNode = testEntityPKRemoteNode;
-   }
-
-   public void setExpectFailureOnRemoteNode(boolean expectFailureOnRemoteNode)
-   {
-      this.expectFailureOnRemoteNode = expectFailureOnRemoteNode;
-   }
-
-   public void setUseOTS(boolean useOTS)
-   {
-      this.useOTS = useOTS;
-   }
-
-   public void setUseEJB3(boolean useEJB3)
-   {
-      this.useEJB3 = useEJB3;
-   }
-
-   public void setRemoteJndiPort(int remoteJndiPort)
-   {
-      this.remoteJndiPort = remoteJndiPort;
-   }
-   
-   public void setRemoteCorbaPort(int remoteCorbaPort)
-   {
-      this.remoteCorbaPort = remoteCorbaPort;
-   }
-
-}

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/ASTestConfig.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossts/taskdefs/ASTestConfig.java	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/ASTestConfig.java	2010-04-13 07:23:23 UTC (rev 103888)
@@ -23,12 +23,14 @@
 import org.apache.tools.ant.Task;
 import org.apache.tools.ant.BuildException;
 import org.jboss.test.jbossts.recovery.ASFailureSpec;
-import org.jboss.jbossas.servermanager.Server;
-import org.jboss.jbossas.servermanager.ServerManager;
+import org.jboss.test.util.server.Server;
+import org.jboss.test.util.server.ServerManager;
 import org.xml.sax.SAXException;
+import org.jnp.interfaces.NamingContext;
 
 import javax.naming.NamingException;
 import javax.naming.Context;
+import javax.naming.InitialContext;
 import javax.xml.transform.TransformerException;
 import javax.xml.parsers.ParserConfigurationException;
 import java.util.*;
@@ -225,7 +227,17 @@
         {
             Server server = manager.getServer(serverName);
 
-            return (server != null ? server.getNamingContext() : null);
+            if (server == null)
+                return null;
+
+            Properties properties = new Properties();
+            properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");
+            properties.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
+            properties.setProperty(Context.PROVIDER_URL, server.getRmiUrl());
+            properties.setProperty("j2ee.clientName", "JBoss Server Manager");
+            properties.setProperty(NamingContext.JNP_DISABLE_DISCOVERY, "true");
+
+            return new InitialContext(properties);
         }
         catch (NamingException e)
         {
@@ -250,7 +262,7 @@
      *
      * @param serverName name of the target instance
      * @throws IOException If another process is already using a port required by this instance
-     * @see org.jboss.jbossas.servermanager.ServerController#startServer(org.jboss.jbossas.servermanager.Server, org.jboss.jbossas.servermanager.ServerManager)
+     * @see org.jboss.test.util.server.ServerController#startServer(org.jboss.test.util.server.Server, org.jboss.test.util.server.ServerManager)
      */
     public void startServer(String serverName) throws IOException
     {
@@ -263,7 +275,7 @@
     }
 
     /**
-     * @see org.jboss.jbossas.servermanager.ServerController#stopServer(org.jboss.jbossas.servermanager.Server, org.jboss.jbossas.servermanager.ServerManager)
+     * @see org.jboss.test.util.server.ServerController#stopServer(org.jboss.test.util.server.Server, org.jboss.test.util.server.ServerManager)
      */
     public void stopServer(String serverName) throws IOException
     {
@@ -299,46 +311,4 @@
         return manager;
     }
 
-    /**
-     * Configure a target AS to start with a non-default set of bindings
-     *
-     * @param serverName the server whose bindings are being configured
-     * @throws TransformerException error parsing the server bindings xml file
-     * @throws IOException error whilst locating the bindings file in the file system
-     * @throws SAXException error parsing the server bindings xml file
-     * @throws ParserConfigurationException error parsing the server bindings xml file
-     */
-    public void configureServerBinding(String serverName) throws TransformerException, IOException, SAXException, ParserConfigurationException
-    {
-        Server server = manager.getServer(serverName);
-        String configHome = getProductDir();
-        String mbeanServiceFile = getServerPath(serverName) + "conf/jboss-service.xml";
-        String bindingName = server.getSysProperty("server.binding.name");
-        String bindingFile = server.getSysProperty("server.binding.location");
-
-        if (bindingFile == null)
-            return;
-
-        bindingFile = configHome + bindingFile;
-
-        // if bindingName is set then it is safe to check that the AS is up via the Naming service port
-        // BTW the AS5 team has changed the behavior of the naming service port - it is opened before
-        // all the services have been configured so any target deployments may not have been initialised
-        // when the server is declared as running. Instead we force the server to use a web server port to
-        // determine if the AS is running.
-        if (bindingName == null)
-            return;
-//            bindingName = ServerBindingConfig.DEFAULT_BINDING;
-//        else
-//            server.setHasWebServer(true);
-
-        ServerBindingConfig.setBinding(mbeanServiceFile, bindingName, bindingFile);
-
-        server.setRmiPort(ServerBindingConfig.lookupRmiPort(bindingFile, bindingName, server.getRmiPort()));
-        server.setHttpPort(ServerBindingConfig.lookupHttpPort(bindingFile, bindingName, server.getHttpPort()));
-
-        System.out.println("Using: " + Context.PROVIDER_URL
-                + " = jnp://"+ server.getHost() + ':' + server.getRmiPort()
-                + " and http port " + server.getHttpPort());
-    }
 }

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/ServerTask.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossts/taskdefs/ServerTask.java	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/ServerTask.java	2010-04-13 07:23:23 UTC (rev 103888)
@@ -22,8 +22,8 @@
 
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Task;
-import org.jboss.jbossas.servermanager.Server;
-import org.jboss.jbossas.servermanager.ServerManager;
+import org.jboss.test.util.server.Server;
+import org.jboss.test.util.server.ServerManager;
 import org.xml.sax.SAXException;
 
 import javax.xml.transform.TransformerException;
@@ -150,15 +150,6 @@
         {
             // make sure the server config exists
             config.getServerManager().getServer(name);
-            // update its bindings if required
-            try
-            {
-                config.configureServerBinding(name);
-            }
-            catch (Exception e)
-            {
-                throw new ServerTaskException("Error configuring binding for server " + name, e);
-            }
 
             // deploy any artifacts required by this test
             try

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/TransactionLog.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jbossts/taskdefs/TransactionLog.java	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/main/org/jboss/test/jbossts/taskdefs/TransactionLog.java	2010-04-13 07:23:23 UTC (rev 103888)
@@ -22,13 +22,10 @@
 
 import com.arjuna.ats.arjuna.objectstore.ObjectStore;
 import com.arjuna.ats.arjuna.common.Uid;
-import com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean;
-import com.arjuna.ats.arjuna.common.arjPropertyManager;
+import com.arjuna.ats.arjuna.gandiva.ClassName;
 import com.arjuna.ats.arjuna.exceptions.ObjectStoreException;
 import com.arjuna.ats.arjuna.state.InputObjectState;
 import com.arjuna.ats.arjuna.AtomicAction;
-import com.arjuna.ats.arjuna.coordinator.TxControl;
-import com.arjuna.ats.internal.arjuna.common.UidHelper;
 
 import java.util.ArrayList;
 import java.util.Collection;
@@ -52,24 +49,12 @@
 
    private void init(String storeDir, String impleType)
    {
-		ObjectStoreEnvironmentBean objectStoreEnvironmentBean = arjPropertyManager.getObjectStoreEnvironmentBean();
-		objectStoreEnvironmentBean.setObjectStoreDir(storeDir);
+      System.setProperty("com.arjuna.ats.arjuna.objectstore.objectStoreDir", storeDir);
 
-        if (impleType != null)
-        {
-            try
-            {
-                Class c = Class.forName(impleType);
-
-                store = (ObjectStore) c.newInstance();
-            }
-            catch (final Throwable ex)
-            {
-                ex.printStackTrace();
-            }
-        }
-        else
-            store = TxControl.getStore();
+      if (impleType != null)
+         store = new ObjectStore(new ClassName(impleType), (String) null);
+      else
+         store = new ObjectStore();
    }
 
    /**
@@ -125,35 +110,35 @@
                   endOfList = true;
                else
                {
-                  if (objectType != null && !theName.matches(objectType))
+                  if (objectType != null && !theName.equals(objectType))
                      continue;
 
                   InputObjectState uids = new InputObjectState();
 
                   if (store.allObjUids(theName, uids))
                   {
+                     try
+                     {
+                        boolean endOfUids = false;
 
-                      Uid theUid;
+                        while (!endOfUids)
+                        {
+                           Uid theUid = new Uid(Uid.nullUid());
+                           theUid.unpack(uids);
 
-                      try
-                      {
-                          boolean endOfUids = false;
-
-                          while (!endOfUids)
-                          {
-                              theUid = UidHelper.unpackFrom(uids);
-
-                              if (theUid.equals(Uid.nullUid()))
-                                  endOfUids = true;
-                              else
-                                  ids.add(theUid);
-                          }
-                      }
-                      catch (Exception e)
-                      {
-                          // end of uids!
-                      }
+                           if (theUid.equals(Uid.nullUid()))
+                              endOfUids = true;
+                           else
+                              ids.add(theUid);
+                        }
+                     }
+                     catch (Exception e)
+                     {
+                        // end of uids!
+                     }
                   }
+
+                  System.out.println();
                }
             }
          }

Copied: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts (from rev 103102, trunk/testsuite/src/resources/jbossts)

Deleted: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml
===================================================================
--- trunk/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<datasources>
-  <xa-datasource>
-    <jndi-name>CrashRecoveryDS</jndi-name>
-    <track-connection-by-tx>true</track-connection-by-tx> 
-    <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
-    <xa-datasource-property name="ServerName">vmg01.mw.lab.eng.bos.redhat.com</xa-datasource-property>
-    <!--xa-datasource-property name="ServerName">dev01.qa.atl.jboss.com</xa-datasource-property-->
-    <xa-datasource-property name="PortNumber">5432</xa-datasource-property>
-    <xa-datasource-property name="DatabaseName">crashrec</xa-datasource-property>
-    <xa-datasource-property name="User">crashrec</xa-datasource-property>
-    <xa-datasource-property name="Password">crashrec</xa-datasource-property>
-  </xa-datasource>
-</datasources>

Copied: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml (from rev 103255, trunk/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml)
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/postgres82-xa-ds.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<datasources>
+  <xa-datasource>
+    <jndi-name>CrashRecoveryDS</jndi-name>
+    <track-connection-by-tx>true</track-connection-by-tx> 
+    <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
+    <xa-datasource-property name="ServerName">vmg01.mw.lab.eng.bos.redhat.com</xa-datasource-property>
+    <xa-datasource-property name="PortNumber">5432</xa-datasource-property>
+    <xa-datasource-property name="DatabaseName">crashrec</xa-datasource-property>
+    <xa-datasource-property name="User">crashrec</xa-datasource-property>
+    <xa-datasource-property name="Password">crashrec</xa-datasource-property>
+  </xa-datasource>
+</datasources>

Deleted: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/sybase12-xa-ds.xml
===================================================================
--- trunk/testsuite/src/resources/jbossts/resources/sybase12-xa-ds.xml	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/sybase12-xa-ds.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  JBoss Server Configuration                                           -->
-<!-- Thanks to kosulin in the forumns                                      -->
-<!-- ===================================================================== -->
-
-<!-- $Id: sybase-xa-ds.xml 85945 2009-03-16 19:45:12Z dimitris at jboss.org $ -->
-
-<datasources>
-
-   <xa-datasource>
-     <jndi-name>CrashRecoveryDS</jndi-name>
-     <!-- uncomment to enable interleaving <interleaving/> -->
-     <xa-datasource-class>com.sybase.jdbc3.jdbc.SybXADataSource</xa-datasource-class>
-     <xa-datasource-property name="NetworkProtocol">Tds</xa-datasource-property>
-     <xa-datasource-property name="ServerName">dev01.qa.atl.jboss.com</xa-datasource-property>
-     <xa-datasource-property name="PortNumber">4100</xa-datasource-property>
-     <xa-datasource-property name="DatabaseName">crashrec</xa-datasource-property>
-     <xa-datasource-property name="User">crashrec</xa-datasource-property>
-     <xa-datasource-property name="Password">crashrec</xa-datasource-property>
-     <min-pool-size>1</min-pool-size>
-     <max-pool-size>20</max-pool-size>
-     <idle-timeout-minutes>15</idle-timeout-minutes>
-     <!--check-valid-connection-sql>select 1 from mytable</check-valid-connection-sql-->
-     <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.SybaseExceptionSorter</exception-sorter-class-name>
-     <type-mapping>Sybase</type-mapping>
-
-   </xa-datasource>
-
-</datasources>

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/sybase15-xa-ds.xml
===================================================================
--- trunk/testsuite/src/resources/jbossts/resources/sybase15-xa-ds.xml	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/resources/sybase15-xa-ds.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -15,8 +15,8 @@
      <!-- uncomment to enable interleaving <interleaving/> -->
      <xa-datasource-class>com.sybase.jdbc3.jdbc.SybXADataSource</xa-datasource-class>
      <xa-datasource-property name="NetworkProtocol">Tds</xa-datasource-property>
-     <xa-datasource-property name="ServerName">dev77.qa.atl2.redhat.com</xa-datasource-property>
-     <xa-datasource-property name="PortNumber">4100</xa-datasource-property>
+     <xa-datasource-property name="ServerName">vmg07.mw.lab.eng.bos.redhat.com</xa-datasource-property>
+     <xa-datasource-property name="PortNumber">5000</xa-datasource-property>
      <xa-datasource-property name="DatabaseName">crashrec</xa-datasource-property>
      <xa-datasource-property name="User">crashrec</xa-datasource-property>
      <xa-datasource-property name="Password">crashrec</xa-datasource-property>

Deleted: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/as-tests.xml
===================================================================
--- trunk/testsuite/src/resources/jbossts/scripts/as-tests.xml	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/as-tests.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -1,870 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="crashrecovery-tests" default="as-tests" basedir="."
-         xmlns:astest="http://jboss.org/ns/test/ant/astest">
-
-  <property environment="env"/>
-  <property name="jboss.home" value="${env.JBOSS_HOME}"/>
-  <property name="product.dir" value="${env.DTF_HOME}/JBossTS-JTA-QA/"/>
-
-  <property name="astest.jar.dir" value="${product.dir}/qa/resources"/>
-  <property name="astest.jar.name" value="astest.jar"/>
-  <property name="astest.jar.deploy.dir" value="qa/lib"/>
-
-  <property name="node0" value="localhost" />
-  <property name="node1" value="192.168.1.106" />
-
-  <property name="driver.home" value="${product.dir}/dbdrivers"/>
-
-  <!--
-      import configuration settings for the tests
-    -->
-  <import file="imports/test-config.xml"/>
-  
-  
-  <!--
-      Main targets intended for JBossAS Testsuite optional task
-    -->
-  <target name="crash-tests" depends="want-all-dbs, want-all-tstypes, want-all-tsdemarc, want-all-testcases, crash-tests-single" />
-  
-  <target name="crash-tests-single-db" depends="want-all-tstypes, want-all-tsdemarc, want-all-testcases, crash-tests-single" />
-
-  <target name="crash-tests-single-db-tstype" depends="want-all-tsdemarc, want-all-testcases, crash-tests-single" />
-  
-  <target name="crash-tests-single" depends="init, set-db, prepare-drivers, set-tstype, set-tsdemarc, set-testcase, crash-tests-tstype-jta, crash-tests-tstype-jts" />
-
-
-  <target name="jts-propagation-tests" depends="want-all-ejbX, want-all-transports, jts-propagation-tests-single" />
-
-  <target name="jts-propagation-tests-single" depends="init-propagation-tests, set-db, prepare-drivers, set-ejbX, set-transport, propag-tests-select-db" />
-
-	
-  <!--
-      Other targets... 
-   -->
-  <target name="init">
-  	<echo message="jboss.home=${jboss.home}"/>
-    <property name="wipeOutTxsInDoubt" value="true" />
-  </target>
-  
-  <target name="set-db">
-    <condition property="want.psql_8.2">
-       <equals arg1="${jbossts.db}" arg2="psql_8.2"/>
-    </condition>
-    <condition property="want.psql_8.3">
-       <equals arg1="${jbossts.db}" arg2="psql_8.3"/>
-    </condition>
-    <condition property="want.sybase_15">
-       <equals arg1="${jbossts.db}" arg2="sybase_15"/>
-    </condition>
-    <condition property="want.oracle_10">
-       <equals arg1="${jbossts.db}" arg2="oracle_10"/>
-    </condition>
-    <condition property="want.oracle_11">
-       <equals arg1="${jbossts.db}" arg2="oracle_11"/>
-    </condition>
-    <condition property="want.oracle_11_r2">
-       <equals arg1="${jbossts.db}" arg2="oracle_11_r2"/>
-    </condition>
-    <condition property="want.db2_9.7">
-       <equals arg1="${jbossts.db}" arg2="db2_9.7"/>
-    </condition>
-    <condition property="want.mysql_5.0">
-       <equals arg1="${jbossts.db}" arg2="mysql_5.0"/>
-    </condition>
-    <condition property="want.mysql_5.1">
-       <equals arg1="${jbossts.db}" arg2="mysql_5.1"/>
-    </condition>
-    <condition property="want.mssql_2005">
-       <equals arg1="${jbossts.db}" arg2="mssql_2005"/>
-    </condition>
-    <condition property="want.mssql_2008">
-       <equals arg1="${jbossts.db}" arg2="mssql_2008"/>
-    </condition>
-    <condition property="want.oracle_rac">
-       <equals arg1="${jbossts.db}" arg2="oracle_rac"/>
-    </condition>
-    <condition property="want.oracle_rac_lb">
-       <equals arg1="${jbossts.db}" arg2="oracle_rac_lb"/>
-    </condition>
-    <condition property="want.oracle_rac_r2">
-       <equals arg1="${jbossts.db}" arg2="oracle_rac_r2"/>
-    </condition>
-    <condition property="want.oracle_rac_r2_lb">
-       <equals arg1="${jbossts.db}" arg2="oracle_rac_r2_lb"/>
-    </condition>
-  </target>
-	
-  <target name="want-all-dbs">
-  	<property name="want.psql_8.2" value="true" />
-  	<property name="want.psql_8.3" value="true" />
-  	<property name="want.sybase_15" value="true" />
-  	<property name="want.oracle_10" value="true" />
-  	<property name="want.oracle_11" value="true" />
-  	<property name="want.oracle_11_r2" value="true" />
-  	<property name="want.db2_9.7" value="true" />
-  	<property name="want.mysql_5.0" value="true" />
-  	<property name="want.mysql_5.1" value="true" />
-  	<property name="want.mssql_2005" value="true" />
-  	<property name="want.mssql_2008" value="true" />
-  	<property name="want.oracle_rac" value="true" />
-  	<property name="want.oracle_rac_lb" value="true" />
-  	<property name="want.oracle_rac_r2" value="true" />
-  	<property name="want.oracle_rac_r2_lb" value="true" />
-  </target>
-
-  <target name="set-tstype">
-    <condition property="want.tstype.jta">
-       <equals arg1="${jbossts.tstype}" arg2="jta"/>
-    </condition>
-    <condition property="want.tstype.jts">
-       <equals arg1="${jbossts.tstype}" arg2="jts"/>
-    </condition>
-  </target>
-	
-  <target name="want-all-tstypes">
-  	<property name="want.tstype.jta" value="true" />
-  	<property name="want.tstype.jts" value="true" />
-  </target>
-
-  <target name="set-tsdemarc">
-    <condition property="want.cmt">
-       <equals arg1="${jbossts.tsdemarc}" arg2="cmt"/>
-    </condition>
-    <condition property="want.bmt">
-       <equals arg1="${jbossts.tsdemarc}" arg2="bmt"/>
-    </condition>
-  </target>
-	
-  <target name="want-all-tsdemarc">
-  	<property name="want.cmt" value="true" />
-  	<property name="want.bmt" value="true" />
-  </target>
-
-  <target name="set-testcase">
-    <condition property="want.none">
-       <equals arg1="${jbossts.testcase}" arg2="none"/>
-    </condition>
-    <condition property="want.none.rev">
-       <equals arg1="${jbossts.testcase}" arg2="none.rev"/>
-    </condition>
-    <condition property="want.prepare_ex">
-       <equals arg1="${jbossts.testcase}" arg2="prepare_ex"/>
-    </condition>
-    <condition property="want.prepare_ex.rev">
-       <equals arg1="${jbossts.testcase}" arg2="prepare_ex.rev"/>
-    </condition>
-    <condition property="want.prepare_halt">
-       <equals arg1="${jbossts.testcase}" arg2="prepare_halt"/>
-    </condition>
-    <condition property="want.prepare_halt.rev">
-       <equals arg1="${jbossts.testcase}" arg2="prepare_halt.rev"/>
-    </condition>
-    <condition property="want.commit_halt">
-       <equals arg1="${jbossts.testcase}" arg2="commit_halt"/>
-    </condition>
-    <condition property="want.commit_halt.rev">
-       <equals arg1="${jbossts.testcase}" arg2="commit_halt.rev"/>
-    </condition>
-  </target>
-	
-  <target name="want-all-testcases">
-    <property name="want.prepare_ex" value="true" />
-    <property name="want.prepare_ex.rev" value="true" />
-    <property name="want.prepare_halt" value="true" />
-    <property name="want.prepare_halt.rev" value="true" />
-    <property name="want.commit_halt.rev" value="true" />
-  </target>
-
-	
-  <target name="crash-tests-tstype-jta" if="want.tstype.jta">
-  	<antcall target="call-tests-for-all-dbs"><param name="tstype" value="jta"/><param name="call.target" value="crash-tests-for-database"/></antcall>
-  </target>
-  
-  <target name="crash-tests-tstype-jts" if="want.tstype.jts">
-  	<antcall target="call-tests-for-all-dbs"><param name="tstype" value="jts"/><param name="call.target" value="crash-tests-for-database"/></antcall>
-  </target>
-
-  <target name="call-tests-for-all-dbs">
-  	<antcall target="call-tests-for-psql_8.2"/>
-  	<antcall target="call-tests-for-psql_8.3"/>
-  	<antcall target="call-tests-for-oracle_10"/>
-  	<antcall target="call-tests-for-oracle_11"/>
-  	<antcall target="call-tests-for-oracle_11_r2"/>
-  	<antcall target="call-tests-for-mssql_2005"/>
-  	<antcall target="call-tests-for-mssql_2008"/>
-  	<antcall target="call-tests-for-mysql_5.0"/>
-  	<antcall target="call-tests-for-mysql_5.1"/>
-  	<antcall target="call-tests-for-db2_9.7"/>
-  	<antcall target="call-tests-for-sybase_15"/>
-  	<antcall target="call-tests-for-oracle_rac"/>
-  	<antcall target="call-tests-for-oracle_rac_lb"/>
-  	<antcall target="call-tests-for-oracle_rac_r2"/>
-  	<antcall target="call-tests-for-oracle_rac_r2_lb"/>
-  </target>
-
-  <target name="call-tests-for-psql_8.2" if="want.psql_8.2">
-    <antcall target="${call.target}">
-      <param name="dbdriver" value="${driver.name.psql_8.2}"/>
-      <param name="datasource" value="postgres82-xa-ds.xml" /> 
-   	  <param name="dbname" value="psql82" /> 
-    </antcall>
-  </target>
-	
-  <target name="call-tests-for-psql_8.3" if="want.psql_8.3">
-    <antcall target="${call.target}">
-      <param name="dbdriver" value="${driver.name.psql_8.3}"/>
-      <param name="datasource" value="postgres83-xa-ds.xml" /> 
-   	  <param name="dbname" value="psql83" /> 
-    </antcall>
-  </target>
-
-  <target name="call-tests-for-oracle_10" if="want.oracle_10">
-  	<antcall target="${call.target}">
-  	  <param name="dbdriver" value="${driver.name.oracle_10}"/>
-  	  <param name="datasource" value="oracle10-xa-ds.xml" /> 
-   	  <param name="dbname" value="oracle10" /> 
-    </antcall>
-  </target>
-  	
-  <target name="call-tests-for-oracle_11" if="want.oracle_11">
-  	<antcall target="${call.target}">
-  	  <param name="dbdriver" value="${driver.name.oracle_11}"/>
-  	  <param name="datasource" value="oracle11-xa-ds.xml" /> 
-   	  <param name="dbname" value="oracle11" /> 
-    </antcall>
-  </target>
-
-  <target name="call-tests-for-oracle_11_r2" if="want.oracle_11_r2">
-    <antcall target="${call.target}">
-      <param name="dbdriver" value="${driver.name.oracle_11}"/>
-      <param name="datasource" value="oracle11-r2-xa-ds.xml" /> 
-      <param name="dbname" value="oracle11_r2" /> 
-    </antcall>
-  </target>
-
-  <target name="call-tests-for-oracle_rac" if="want.oracle_rac">
-    <antcall target="${call.target}">
-      <param name="dbdriver" value="${driver.name.oracle_11}"/>
-      <param name="datasource" value="oracle-rac1-xa-ds.xml" /> 
-      <param name="dbname" value="oracle_rac" /> 
-    </antcall>
-  </target>
-
-  <target name="call-tests-for-oracle_rac_lb" if="want.oracle_rac_lb">
-    <antcall target="${call.target}">
-      <param name="dbdriver" value="${driver.name.oracle_11}"/>
-      <param name="datasource" value="oracle-rac-lb-xa-ds.xml" /> 
-      <param name="dbname" value="oracle_rac_lb" /> 
-    </antcall>
-  </target>
-
-  <target name="call-tests-for-oracle_rac_r2" if="want.oracle_rac_r2">
-    <antcall target="${call.target}">
-      <param name="dbdriver" value="${driver.name.oracle_11}"/>
-      <param name="datasource" value="oracle-rac-r2-1-xa-ds.xml" /> 
-      <param name="dbname" value="oracle_rac_r2" /> 
-    </antcall>
-  </target>
-
-  <target name="call-tests-for-oracle_rac_r2_lb" if="want.oracle_rac_r2_lb">
-    <antcall target="${call.target}">
-      <param name="dbdriver" value="${driver.name.oracle_11}"/>
-      <param name="datasource" value="oracle-rac-r2-lb-xa-ds.xml" /> 
-      <param name="dbname" value="oracle_rac_r2_lb" /> 
-    </antcall>
-  </target>
-
-  <target name="call-tests-for-mssql_2005" if="want.mssql_2005">
-  	<antcall target="${call.target}">
-  	  <param name="dbdriver" value="${driver.name.mssql_2005}"/>
-  	  <param name="datasource" value="mssql2005-xa-ds.xml" /> 
-   	  <param name="dbname" value="mssql2005" /> 
-    </antcall>
-  </target>
-	
-  <target name="call-tests-for-mssql_2008" if="want.mssql_2008">
-  	<antcall target="${call.target}">
-  	  <param name="dbdriver" value="${driver.name.mssql_2008}"/>
-  	  <param name="datasource" value="mssql2008-xa-ds.xml" /> 
-   	  <param name="dbname" value="mssql2008" /> 
-    </antcall>
-  </target>
-  	
-  <target name="call-tests-for-mysql_5.0" if="want.mysql_5.0">
-  	<antcall target="${call.target}">
-  	  <param name="dbdriver" value="${driver.name.mysql_5.0}"/>
-  	  <param name="datasource" value="mysql50-xa-ds.xml" /> 
-   	  <param name="dbname" value="mysql50" /> 
-    </antcall>
-  </target>
-	             
-  <target name="call-tests-for-mysql_5.1" if="want.mysql_5.1">
-  	<antcall target="${call.target}">
-  	  <param name="dbdriver" value="${driver.name.mysql_5.1}"/>
-  	  <param name="datasource" value="mysql51-xa-ds.xml" /> 
-   	  <param name="dbname" value="mysql51" /> 
-    </antcall>
-  </target>
-
-  <target name="call-tests-for-db2_9.7" if="want.db2_9.7">
-  	<antcall target="${call.target}">
-  	  <param name="dbdriver" value="${driver.name.db2_9.7}" />
-  	  <param name="datasource" value="db2_97-xa-ds.xml" /> 
-   	  <param name="dbname" value="db2_9" /> 
-    </antcall>
-  </target>
-	  	
-  <target name="call-tests-for-sybase_15" if="want.sybase_15">
-  	<antcall target="${call.target}">
-  	  <param name="dbdriver" value="${driver.name.sybase_15}"/>
-  	  <param name="datasource" value="sybase15-xa-ds.xml" /> 
-   	  <param name="dbname" value="sybase15" /> 
-    </antcall>
-  </target>
-
-
-  <target name="crash-tests-for-database" depends="hack-before-astest-run, start-appserver-for-crash-tests, crash-tests-for-database-cmt, crash-tests-for-database-bmt, hack-after-astest-run" />
-
-  <target name="crash-tests-for-database-cmt" if="want.cmt">
-    <antcall target="crash-tests-all-testcases"><param name="cmt" value="true" /></antcall>
-  </target>
-	
-  <target name="crash-tests-for-database-bmt" if="want.bmt">
-    <antcall target="crash-tests-all-testcases"><param name="cmt" value="false" /></antcall>
-  </target>
-	
-	
-  <target name="crash-tests-all-testcases" 
-  		depends="testcase-none,
-  		         testcase-none-rev,
-  				 testcase-prepare_ex, 
-  		         testcase-prepare_ex-rev, 
-  		         testcase-prepare_halt, 
-  		         testcase-prepare_halt-rev, 
-  		         testcase-commit_halt-rev" />
-
-  <target name="testcase-none" if="want.none">
-        <antcall target="crash-recovery-test">
-            <param name="specs" value="none"/><param name="reverseOrder" value="false"/><param name="rollbackExpected" value="false"/>
-        </antcall>
-  </target>
-
-  <target name="testcase-none-rev" if="want.none.rev">
-        <antcall target="crash-recovery-test">
-        	<param name="specs" value="none"/><param name="reverseOrder" value="true"/><param name="rollbackExpected" value="false"/>
-        </antcall>
-  </target>
-
-  <target name="testcase-prepare_ex" if="want.prepare_ex">
-        <antcall target="crash-recovery-test">
-        	<param name="specs" value="prepare_ex"/><param name="reverseOrder" value="false"/><param name="rollbackExpected" value="true"/>
-        </antcall>
-  </target>
-
-  <target name="testcase-prepare_ex-rev" if="want.prepare_ex.rev">
-        <antcall target="crash-recovery-test">
-        	<param name="specs" value="prepare_ex"/><param name="reverseOrder" value="true"/><param name="rollbackExpected" value="true"/>
-        </antcall>
-  </target>
-
-  <target name="testcase-prepare_halt" if="want.prepare_halt">
-        <antcall target="crash-recovery-test">
-        	<param name="specs" value="prepare_halt"/><param name="reverseOrder" value="false"/><param name="rollbackExpected" value="true"/>
-        </antcall>
-  </target>
-
-  <target name="testcase-prepare_halt-rev" if="want.prepare_halt.rev">
-        <antcall target="crash-recovery-test">
-        	<param name="specs" value="prepare_halt"/><param name="reverseOrder" value="true"/><param name="rollbackExpected" value="true"/>
-        </antcall>
-  </target>
-
-  <target name="testcase-commit_halt-rev" if="want.commit_halt.rev">
-        <antcall target="crash-recovery-test">
-        	<param name="specs" value="commit_halt"/><param name="reverseOrder" value="true"/><param name="rollbackExpected" value="false"/>
-        </antcall>  	
-  </target>
-
-  <target name="testcase-commit_halt" if="want.commit_halt">
-        <!-- DISABLED test-case: this test scenario is invalid for the current version of JBossTS --> 
-        <antcall target="crash-recovery-test">
-        	<param name="specs" value="commit_halt"/><param name="reverseOrder" value="false"/><param name="rollbackExpected" value="false"/>
-        </antcall>
-  </target>
-
-  <target name="start-appserver-for-crash-tests">
-      <condition property="astest.app.jar.name" value="${astest.alternative.jar.name}">
-        <isset property="astest.alternative.jar.name"/>
-      </condition>
-      <property name="astest.app.jar.name" value="${astest.jar.name}" />
-
-      <astest:server method="start" serverName="crashrecovery-${tstype}" >
-        <deploy from="dbdrivers/${dbdriver}" to="lib/${dbdriver}" />
-        <deploy from="resources/${datasource}" to="deploy/${datasource}" />
-        <deploy from="${astest.jar.deploy.dir}/${astest.app.jar.name}" to="deploy/${astest.app.jar.name}" />
-      </astest:server>
-  </target>
-
-  <target name="stop-appserver-for-crash-tests">
-      <astest:server method="stop" serverName="crashrecovery-${tstype}" >
-        <undeploy from="deploy/${astest.app.jar.name}" />
-        <undeploy from="deploy/${datasource}" />
-        <undeploy from="lib/${dbdriver}" />    	
-      </astest:server>
-      
-      <!-- archive the server log -->
-      <zip destfile="${jboss.home}/server/crashrecovery-${tstype}/log/server-${dbname}.log.zip">
-        <fileset file="${jboss.home}/server/crashrecovery-${tstype}/log/server.log"/>
-        <fileset file="${jboss.home}/server/crashrecovery-${tstype}/log/boot.log"/>
-      </zip>
-      <delete file="${jboss.home}/server/crashrecovery-${tstype}/log/server.log"/>
-      <delete file="${jboss.home}/server/crashrecovery-${tstype}/log/boot.log"/>
-      <copy todir="${jboss.home}/server/crashrecovery-${tstype}/data/tx-object-store-${dbname}"> 
-        <fileset dir="${jboss.home}/server/crashrecovery-${tstype}/data/tx-object-store" />
-      </copy>
-      <delete dir="${jboss.home}/server/crashrecovery-${tstype}/data/tx-object-store"/>
-      <!-- delete work and tmp dirs otherwise tests failed due to permgen space - FIXME is this the right way how to ensure that? -->
-      <delete dir="${jboss.home}/server/crashrecovery-${tstype}/work"/>
-      <delete dir="${jboss.home}/server/crashrecovery-${tstype}/tmp"/>
-  </target>
-
-  <!--
-    Note: If you want to wipe out txs in doubt before and after test you have to set property 'wipeOutTxsInDoubt' to true.
-    -->
-  <target name="crash-recovery-test">
-<!--    <attribute name="specs"/>
-    <attribute name="datasource"/>
-    <attribute name="dbdriver"/>
-    <attribute name="dbname"/>
-    <attribute name="cmt"/>
-    <attribute name="tstype"/>
-    <attribute name="reverseOrder"/>
-    <attribute name="rollbackExpected"/>  -->
-    <sequential>
-      
-      <condition property="test.name.cmt" value="cmt" else="bmt">
-      	<istrue value="${cmt}"/>
-      </condition>
-      <condition property="test.name.reverseOrder" value="-reverse" else="">
-        <istrue value="${reverseOrder}"/>
-      </condition>
-      <property name="testname" value="${tstype}-${specs}-${test.name.cmt}${test.name.reverseOrder}"/>
-
-      <condition property="storeType" value="StateManager/BasicAction/TwoPhaseCoordinator/ArjunaTransactionImple">
-        <equals arg1="${tstype}" arg2="jts" />
-      </condition>
-      <property name="storeType" value="StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction" />
-     
-      <astest:action abortOnFail="false" waitFor="10000" impl="org.jboss.test.jbossts.taskdefs.JUnitClientAction">
-        <param key="testClass" value="org.jboss.test.jbossts.ASCrashRecovery01.TestWithJPA" />
-        <param key="name" value="${dbname}-${testname}" />
-        <param key="serverName" value="crashrecovery-${tstype}" />
-        <param key="specs" value="${specs}" />
-        <param key="cmt" value="${cmt}" />
-        <param key="storeType" value="${storeType}" />
-        <param key="reverseOrder" value="${reverseOrder}" />
-        <param key="rollbackExpected" value="${rollbackExpected}" />
-        <param key="wipeOutTxsInDoubtBeforeTest" value="${wipeOutTxsInDoubtBeforeTest}" />
-        <param key="wipeOutTxsInDoubt" value="${wipeOutTxsInDoubt}" />
-        <param key="debug" value="true" />
-        <param key="reportFile" value="${build.reports}/TEST-org.jboss.test.jbossts.ASCrashRecovery01.TestWithJPA-${dbname}-${testname}.xml" />
-        <param key="testTime" value="${testTime}" />
-      </astest:action>
-      
-    </sequential>
-  </target>
-
-  <target name="hack-before-astest-run" depends="hack-before-astest-run-for-db2_9.7, hack-before-astest-run-for-oracle_rac, hack-before-astest-run-for-oracle_rac_r2" />
-  
-  <target name="hack-after-astest-run" depends="hack-after-astest-run-for-db2_9.7, hack-after-astest-run-for-oracle_rac, hack-after-astest-run-for-oracle_rac_r2" />
-  
-  <target name="hack-before-astest-run-for-db2_9.7" if="want.db2_9.7">
-  	<!-- deploy license .jar file  -->
-  	<copy file="${product.dir}/dbdrivers/db2jcc_license_cu.jar" todir="${jboss.home}/server/crashrecovery-${tstype}/lib" />
-  	<!-- prepare hacked astest jar -->
-  	<property name="astest.alternative.jar.name" value="db2-${astest.jar.name}" />
-  	
-  	<available file="${astest.jar.dir}/${astest.alternative.jar.name}" 
-  	    property="have.db2.astest.alternative.jar" />
-    <antcall target="prepare-db2-alternative-jar" />
-  </target>
-  
-  <target name="prepare-db2-alternative-jar" unless="have.db2.astest.alternative.jar">
-  	<mkdir dir="${astest.jar.dir}/${astest.alternative.jar.name}_content"/>
-  	<unjar src="${astest.jar.dir}/${astest.jar.name}" dest="${astest.jar.dir}/${astest.alternative.jar.name}_content" />
-  	<available file="${astest.jar.dir}/${astest.alternative.jar.name}_content/META-INF/persistence.xml" 
-  	    property="have.persistence.xml" />
-  	<antcall target="change-hbm2ddl-update-to-none" />
-  	<jar destfile="${astest.jar.dir}/${astest.alternative.jar.name}">
-        <fileset dir="${astest.jar.dir}/${astest.alternative.jar.name}_content"/>
-  	</jar>
-  	<delete dir="${astest.jar.dir}/${astest.alternative.jar.name}_content" />
-  </target>
-  
-  <target name="change-hbm2ddl-update-to-none" if="have.persistence.xml">
-  	<replace file="${astest.jar.dir}/${astest.alternative.jar.name}_content/META-INF/persistence.xml" summary="true">
-  		<replacetoken><![CDATA[name="hibernate.hbm2ddl.auto" value="update"]]></replacetoken>
-  		<replacevalue><![CDATA[name="hibernate.hbm2ddl.auto" value="none"  ]]></replacevalue> 
-  	</replace>
-  </target>
-  
-  <target name="hack-after-astest-run-for-db2_9.7" if="want.db2_9.7">
-  	<!-- undeploy license .jar file  -->
-  	<delete file="${jboss.home}/server/crashrecovery-${tstype}/lib/db2jcc_license_cu.jar" />
-  </target>
-  
-  <target name="hack-before-astest-run-for-oracle_rac" if="want.oracle_rac">
-    <antcall target="hack-before-astest-run-for-oracle_racs"><param name="oracle_rac_second_ds" value="oracle-rac2-xa-ds.xml"/></antcall>
-  </target>
-  
-  <target name="hack-after-astest-run-for-oracle_rac" if="want.oracle_rac">
-    <antcall target="hack-after-astest-run-for-oracle_racs"><param name="oracle_rac_second_ds" value="oracle-rac2-xa-ds.xml"/></antcall>
-  </target>
-
-  <target name="hack-before-astest-run-for-oracle_rac_r2" if="want.oracle_rac_r2">
-    <antcall target="hack-before-astest-run-for-oracle_racs"><param name="oracle_rac_second_ds" value="oracle-rac-r2-2-xa-ds.xml"/></antcall>
-  </target>
-  
-  <target name="hack-after-astest-run-for-oracle_rac_r2" if="want.oracle_rac_r2">
-    <antcall target="hack-after-astest-run-for-oracle_racs"><param name="oracle_rac_second_ds" value="oracle-rac-r2-2-xa-ds.xml"/></antcall>
-  </target>
-
-  <target name="hack-before-astest-run-for-oracle_racs">
-    <!-- deploy the second DS configuration  -->
-    <copy file="${product.dir}/resources/${oracle_rac_second_ds}" todir="${jboss.home}/server/crashrecovery-${tstype}/deploy" />
-
-    <!-- hack the configuration of JBossTS in order to use the second datasource for crash recovery -->
-    <replace file="${jboss.home}/server/crashrecovery-${tstype}/deploy/transaction-jboss-beans.xml">
-      <replacetoken><![CDATA[com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=CrashRecoveryDS]]></replacetoken>
-      <replacevalue><![CDATA[com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=RecoveryDS]]></replacevalue>
-    </replace>
-  </target>
-
-  <target name="hack-after-astest-run-for-oracle_racs">
-    <!-- undeploy the second DS configuration -->
-    <delete file="${jboss.home}/server/crashrecovery-${tstype}/deploy/${oracle_rac_second_ds}" />
-  	
-    <!-- unhack the configuration of JBossTS -->
-    <replace file="${jboss.home}/server/crashrecovery-${tstype}/deploy/transaction-jboss-beans.xml">
-      <replacetoken><![CDATA[com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=RecoveryDS]]></replacetoken>
-      <replacevalue><![CDATA[com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=CrashRecoveryDS]]></replacevalue>
-    </replace>
-  </target>
-  
-  
-  <!-- 
-    Do use this target if you want to wipe out txs in doubt in all databases. 
-    -->
-  <target name="wipeout-txs-indoubt-all-dbs" depends="want-all-dbs, wipeout-txs-indoubt-single-db" />
-
-  <!-- 
-    Do use this target if you want to wipe out txs in doubt.
-    You can select the databases by setting jbossts.db property, see the 'set-db' target.
-   -->
-  <target name="wipeout-txs-indoubt-single-db" depends="set-db, prepare-drivers">
-    <property name="tstype" value="jta" />
-  	<antcall target="call-tests-for-all-dbs"><param name="call.target" value="execute-wipeout-txs-indoubt"/></antcall>
-  </target>
-  
-  <target name="execute-wipeout-txs-indoubt" depends="hack-before-astest-run, wipeout-txs-indoubt, hack-after-astest-run"/>
-  
-  <target name="wipeout-txs-indoubt">
-      <condition property="astest.app.jar.name" value="${astest.alternative.jar.name}">
-        <isset property="astest.alternative.jar.name"/>
-      </condition>
-      <property name="astest.app.jar.name" value="${astest.jar.name}" />
-
-      <astest:server method="start" serverName="crashrecovery-jta" >
-        <deploy from="dbdrivers/${dbdriver}" to="lib/${dbdriver}" />
-        <deploy from="resources/${datasource}" to="deploy/${datasource}" />
-        <deploy from="${astest.jar.deploy.dir}/${astest.app.jar.name}" to="deploy/${astest.app.jar.name}" />
-      </astest:server>
-      <astest:action abortOnFail="false" waitFor="10000" impl="org.jboss.test.jbossts.taskdefs.JUnitClientAction">
-        <param key="testClass" value="org.jboss.test.jbossts.ASCrashRecovery01.WipeOutTxsInDoubt" />
-        <param key="name" value="test-wipeout-txs-indoubt-${dbname}" />
-        <param key="serverName" value="crashrecovery-jta" />
-        <param key="debug" value="true" />
-        <param key="reportFile" value="${build.reports}/TEST-org.jboss.test.jbossts.ASCrashRecovery01.WipeOutTxsInDoubt-${dbname}.xml" />
-      </astest:action>
-      <astest:server method="stop" serverName="crashrecovery-jta" >
-        <undeploy from="deploy/${datasource}" />
-        <undeploy from="lib/${dbdriver}" />    	
-        <undeploy from="deploy/${astest.app.jar.name}" />
-      </astest:server>
-  </target>
-
-	
-	<!-- =====  get db drivers - borrowed from  https://svn.jboss.org/repos/labs/labs/jbosstm/trunk/qa/build.xml  ==== -->
-    <!-- set these to the location(s) of the database drivers -->
-	
-	<property name="driver.url" value="http://reports.qa.atl.jboss.com/jdbc-drivers/"/>
-    <property name="driver.name.psql_8.2" value="postgresql-8.2.jar"/>
-    <property name="driver.name.psql_8.3" value="postgresql-8.3.jar"/>
-    <property name="driver.name.sybase_15" value="jconn3.jar"/>
-    <property name="driver.name.oracle_10" value="ojdbc14.jar"/>
-    <property name="driver.name.oracle_11" value="ojdbc6.jar"/>
-    <property name="driver.name.db2_9.7" value="db2jcc.jar"/>
-    <property name="driver.name.mysql_5.0" value="mysql-connector-java-5.0.jar"/>
-    <property name="driver.name.mysql_5.1" value="mysql-connector-java-5.1.jar"/>
-    <property name="driver.name.mssql_2005" value="sqljdbc4.jar"/>
-    <property name="driver.name.mssql_2008" value="sqljdbc4.jar"/>
-	
-    <target name="prepare-drivers">
-       <available file="${driver.home}/${driver.name.psql_8.2}" property="have.dbdriver.psql_8.2" value="true"/>      
-       <available file="${driver.home}/${driver.name.psql_8.3}" property="have.dbdriver.psql_8.3" value="true"/>      
-       <available file="${driver.home}/${driver.name.sybase_15}" property="have.dbdriver.sybase_15" value="true"/>
-       <available file="${driver.home}/${driver.name.oracle_10}" property="have.dbdriver.oracle_10" value="true"/>   	
-       <available file="${driver.home}/${driver.name.oracle_11}" property="have.dbdriver.oracle_11" value="true"/>      
-       <available file="${driver.home}/${driver.name.db2_9.7}" property="have.dbdriver.db2_9.7" value="true"/>      
-       <available file="${driver.home}/${driver.name.mysql_5.0}" property="have.dbdriver.mysql_5.0" value="true"/>      
-       <available file="${driver.home}/${driver.name.mysql_5.1}" property="have.dbdriver.mysql_5.1" value="true"/>      
-       <available file="${driver.home}/${driver.name.mssql_2005}" property="have.dbdriver.mssql_2005" value="true"/>      
-       <available file="${driver.home}/${driver.name.mssql_2008}" property="have.dbdriver.mssql_2008" value="true"/>
-       <condition property="want.dbdriver.oracle_11">
-          <or>
-             <istrue value="${want.oracle_11}"/>
-             <istrue value="${want.oracle_11_r2}"/>
-             <istrue value="${want.oracle_rac}"/>
-             <istrue value="${want.oracle_rac_lb}"/>
-             <istrue value="${want.oracle_rac_r2}"/>
-             <istrue value="${want.oracle_rac_r2_lb}"/>
-          </or>
-       </condition>
-       
-       <mkdir dir="${driver.home}" />
-       <antcall target="get.drivers" />
-    </target>
-
-    <target name="get.drivers" 
-    	depends="get.driver.oracle_10, 
-    	         get.driver.oracle_11,
-                 get.driver.mssql_2005,
-    	         get.driver.mssql_2008,
-    	         get.driver.psql_8.3,
-    	         get.driver.psql_8.2,
-    	         get.driver.mysql_5.1,
-                 get.driver.mysql_5.0,
-    	         get.driver.db2_9.7,
-    	         get.driver.sybase_15" />
-    	
-    <target name="get.driver.oracle_10" unless="have.dbdriver.oracle_10" if="want.oracle_10">
-        <get src="${driver.url}/maven2/com/oracle/ojdbc14/10.2.0.4/ojdbc14-10.2.0.4.jar"
-             dest="${driver.home}/${driver.name.oracle_10}"/>
-    </target>
-    <target name="get.driver.oracle_11" unless="have.dbdriver.oracle_11" if="want.dbdriver.oracle_11">
-        <get src="${driver.url}/maven2/com/oracle/ojdbc6/11.2.0.1.0/ojdbc6-11.2.0.1.0.jar"
-             dest="${driver.home}/${driver.name.oracle_11}"/>
-    </target>
-    <target name="get.driver.mssql_2005" unless="have.dbdriver.mssql_2005" if="want.mssql_2005">
-        <get src="${driver.url}/maven2/com/microsoft/sqlserver/msjdbc/2.0.1008.2/msjdbc-2.0.1008.2-4.jar"
-             dest="${driver.home}/${driver.name.mssql_2005}"/>
-    </target>
-    <target name="get.driver.mssql_2008" unless="have.dbdriver.mssql_2008" if="want.mssql_2008">
-        <get src="${driver.url}/maven2/com/microsoft/sqlserver/msjdbc/2.0.1008.2/msjdbc-2.0.1008.2-4.jar"
-             dest="${driver.home}/${driver.name.mssql_2008}"/>
-    </target>
-    <target name="get.driver.psql_8.3" unless="have.dbdriver.psql_8.3" if="want.psql_8.3">
-        <get src="${driver.url}/postgresql-8.3-605.jdbc4.jar"
-             dest="${driver.home}/${driver.name.psql_8.3}"/>
-    </target>
-    <target name="get.driver.psql_8.2" unless="have.dbdriver.psql_8.2" if="want.psql_8.2">
-        <get src="${driver.url}/postgresql-8.2-510.jdbc4.jar"
-             dest="${driver.home}/${driver.name.psql_8.2}"/>
-    </target>
-    <target name="get.driver.mysql_5.1" unless="have.dbdriver.mysql_5.1" if="want.mysql_5.1">
-        <get src="${driver.url}/maven2/mysql/mysql-connector-java/5.1.8/mysql-connector-java-5.1.8.jar"
-             dest="${driver.home}/${driver.name.mysql_5.1}"/>
-    </target>
-    <target name="get.driver.mysql_5.0" unless="have.dbdriver.mysql_5.0" if="want.mysql_5.0">
-        <get src="${driver.url}/maven2/mysql/mysql-connector-java/5.0.8/mysql-connector-java-5.0.8.jar"
-             dest="${driver.home}/${driver.name.mysql_5.0}"/>
-    </target>
-    <target name="get.driver.db2_9.7" unless="have.dbdriver.db2_9.7" if="want.db2_9.7">
-        <get src="${driver.url}/maven2/com/ibm/db2jcc/3.57.86/db2jcc-3.57.86.jar"
-             dest="${driver.home}/${driver.name.db2_9.7}"/>
-        <get src="${driver.url}/maven2/com/ibm/db2jcc_license_cu/3.57.86/db2jcc_license_cu-3.57.86.jar"
-             dest="${driver.home}/db2jcc_license_cu.jar"/>
-    </target>
-    <target name="get.driver.sybase_15" unless="have.dbdriver.sybase_15" if="want.sybase_15">
-        <get src="${driver.url}/maven2/com/sybase/jconnect/6.0.5_26564/jconnect-6.0.5_26564.jar"
-             dest="${driver.home}/${driver.name.sybase_15}"/>
-    </target>
-
-  <!-- ===========   JTS Propagation Test  ==========  -->	
-  
-  <target name="init-propagation-tests">
-    <property name="wipeOutTxsInDoubt" value="true" />
-    <echo message="jboss.home=${jboss.home}"/>
-  </target>
-
-  <target name="want-all-ejbX">
-    <property name="want.ejb2" value="true" />
-    <property name="want.ejb3" value="true" />
-  </target>
-  
-  <target name="set-ejbX">
-    <condition property="want.ejb2">
-       <equals arg1="${jbossts.ejbX}" arg2="ejb2"/>
-    </condition>
-    <condition property="want.ejb3">
-       <equals arg1="${jbossts.ejbX}" arg2="ejb3"/>
-    </condition>
-  </target>
-	
-  <target name="want-all-transports">
-    <property name="want.jrmp" value="true" />
-    <property name="want.iiop" value="true" />
-  </target>
-	
-  <target name="set-transport">
-    <condition property="want.jrmp">
-       <equals arg1="${jbossts.transport}" arg2="jrmp"/>
-    </condition>
-    <condition property="want.iiop">
-       <equals arg1="${jbossts.transport}" arg2="iiop"/>
-    </condition>
-  </target>
-	
-  <target name="propag-tests-select-db">
-    <antcall target="call-tests-for-all-dbs"><param name="call.target" value="propag-tests-main"/></antcall>
-  </target>
-
-  <target name="propag-tests-main"
-      depends="hack-before-astest-run,
-               start-servers-for-jts-propagation-tests,
-               propag-tests-ejb3, 
-               propag-tests-ejb2,
-               stop-servers-for-jts-propagation-tests,
-               hack-after-astest-run" />
-	    
-  <target name="propag-tests-ejb2" if="want.ejb2">
-    <antcall target="propag-tests-transport"><param name="ejb3" value="false" /></antcall>
-  </target>
-	        
-  <target name="propag-tests-ejb3" if="want.ejb3">
-    <antcall target="propag-tests-transport"><param name="ejb3" value="true" /><param name="ejb3.run" value="true" /></antcall>
-  </target>
-
-  <target name="propag-tests-transport" depends="propag-tests-jrmp, propag-tests-iiop" />
-	        
-  <target name="propag-tests-jrmp" if="want.jrmp">
-    <antcall target="jts-propagation-tests-batch"><param name="ots" value="false" /></antcall>
-  </target>
-	            
-  <target name="propag-tests-iiop" if="want.iiop" unless="ejb3.run">
-    <antcall target="jts-propagation-tests-batch"><param name="ots" value="true" /></antcall>
-  </target>
-	
-  <target name="jts-propagation-tests-batch">
-  	
-      <condition property="test.name.ejbX" value="ejb3" else="ejb2">
-        <istrue value="${ejb3}"/>
-      </condition>
-      <condition property="test.name.transport" value="iiop" else="jrmp">
-        <istrue value="${ots}"/>
-      </condition>
-      <property name="testname.prefix.noClientTx" value="${test.name.ejbX}-${test.name.transport}"/>
-      <property name="testname.prefix.clientTx" value="clientTx-${testname.prefix.noClientTx}"/>
-
-      <!-- batch of jts propagation test scenarios -->
-      <!-- server initiated transactions -->
-      <run-jts-propagation-test specs0="none" specs1="none" rollbackExpected="false" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="pre_prepare_rollbackonly" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="pre_prepare_rollbackonly" specs1="none" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="pre_prepare_ejbexception" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="pre_prepare_ejbexception" specs1="none" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="synch_before_rollbackonly" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="synch_before_rollbackonly" specs1="none" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="prepare_ex_rollback" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="prepare_ex_rollback" specs1="none" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="pre_prepare_suspend" specs1="none" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="pre_prepare_suspend" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-    
-      <!-- client initiated transactions -->
-      <run-jts-propagation-test specs0="none" specs1="none" rollbackExpected="false" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="pre_prepare_rollbackonly" rollbackExpected="true" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-      <run-jts-propagation-test specs0="pre_prepare_rollbackonly" specs1="none" rollbackExpected="true" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="synch_before_rollbackonly" rollbackExpected="true" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-      <run-jts-propagation-test specs0="synch_before_rollbackonly" specs1="none" rollbackExpected="true" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="prepare_ex_rollback" rollbackExpected="true" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-      <run-jts-propagation-test specs0="prepare_ex_rollback" specs1="none" rollbackExpected="true" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="pre_prepare_suspend" rollbackExpected="true" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-      <run-jts-propagation-test specs0="pre_prepare_suspend" specs1="none" rollbackExpected="true" clientTx="true" testNamePref="${testname.prefix.clientTx}" />
-  	  
-  	  <!-- tests integrated with crash recovery -->
-      <run-jts-propagation-test specs0="none" specs1="prepare_ex" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="prepare_ex" specs1="none" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="prepare_halt" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="prepare_halt" specs1="none" rollbackExpected="true" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="none" specs1="commit_halt" rollbackExpected="false" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-      <run-jts-propagation-test specs0="commit_halt" specs1="none" rollbackExpected="false" clientTx="false" testNamePref="${testname.prefix.noClientTx}" />
-  </target>
-
-  <target name="start-servers-for-jts-propagation-tests" unless="dont.start.server.for.astests">
-  	
-    <condition property="astest.app.jar.name" value="${astest.alternative.jar.name}">
-      <isset property="astest.alternative.jar.name"/>
-    </condition>
-    <property name="astest.app.jar.name" value="${astest.jar.name}" />
-  	
-    <astest:server method="start" serverName="jts-propagation-node0" >
-      <deploy from="dbdrivers/${dbdriver}" to="lib/${dbdriver}" />
-      <deploy from="resources/${datasource}" to="deploy/${datasource}" />
-      <deploy from="${astest.jar.deploy.dir}/${astest.app.jar.name}" to="deploy/${astest.jar.name}" />
-      <deploy from="${astest.jar.deploy.dir}/${astest.ejb2.jar.name}" to="deploy/${astest.ejb2.jar.name}" />
-    </astest:server>
-    <astest:server method="start" serverName="jts-propagation-node1" >
-      <deploy from="dbdrivers/${dbdriver}" to="lib/${dbdriver}" />
-      <deploy from="resources/${datasource}" to="deploy/${datasource}" />
-      <deploy from="${astest.jar.deploy.dir}/${astest.app.jar.name}" to="deploy/${astest.jar.name}" />
-      <deploy from="${astest.jar.deploy.dir}/${astest.ejb2.jar.name}" to="deploy/${astest.ejb2.jar.name}" />
-    </astest:server>
-  </target>
-  
-  <target name="stop-servers-for-jts-propagation-tests" unless="dont.start.server.for.astests">
-    <astest:server method="stop" serverName="jts-propagation-node1">
-      <undeploy from="deploy/${astest.ejb2.jar.name}" />
-      <undeploy from="deploy/${astest.jar.name}" />
-      <undeploy from="deploy/${datasource}" />
-      <undeploy from="lib/${dbdriver}" />     
-    </astest:server>
-    <astest:server method="stop" serverName="jts-propagation-node0">
-      <undeploy from="deploy/${astest.ejb2.jar.name}" />
-      <undeploy from="deploy/${astest.jar.name}" />
-      <undeploy from="deploy/${datasource}" />
-      <undeploy from="lib/${dbdriver}" />     
-    </astest:server>
-  </target>
-
-  <macrodef name="run-jts-propagation-test">
-    <attribute name="specs0"/>
-    <attribute name="specs1"/>
-    <attribute name="rollbackExpected"/>
-    <attribute name="clientTx"/>
-    <attribute name="testNamePref"/>
-    <sequential>
-    
-    <astest:action abortOnFail="false" waitFor="10000" impl="org.jboss.test.jbossts.taskdefs.JUnitClientAction">
-      <param key="testClass" value="org.jboss.test.jbossts.JTSContextPropagation01.TestContextPropagation" />
-      <param key="name" value="@{testNamePref}-@{specs0}-@{specs1}" />
-      <param key="specs0" value="@{specs0}" />
-      <param key="specs1" value="@{specs1}" />
-      <param key="ots" value="${ots}" />
-      <param key="ejb3" value="${ejb3}" />
-      <param key="serverName0" value="jts-propagation-node0" />
-      <param key="serverName1" value="jts-propagation-node1" />
-      <param key="host0" value="${node0}" />
-      <param key="host1" value="${node1}" />    
-      <param key="clientTx" value="@{clientTx}" />
-      <param key="rollbackExpected" value="@{rollbackExpected}" />
-      <param key="wipeOutTxsInDoubtBeforeTest" value="${wipeOutTxsInDoubtBeforeTest}" />
-      <param key="wipeOutTxsInDoubt" value="${wipeOutTxsInDoubt}" />
-      <param key="debug" value="true" />
-      <param key="reportFile" value="${build.reports}/TEST-org.jboss.test.jbossts.JTSContextPropagation01.TestContextPropagation-@{testNamePref}-@{specs0}-@{specs1}.xml" />
-      <param key="testTime" value="${testTime}" />
-    </astest:action>
-    </sequential>
-  </macrodef>
-	
-</project>

Copied: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/as-tests.xml (from rev 103337, trunk/testsuite/src/resources/jbossts/scripts/as-tests.xml)
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/as-tests.xml	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/as-tests.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -0,0 +1,686 @@
+<?xml version="1.0"?>
+
+<project name="crashrecovery-tests" default="crash-tests" basedir="."
+         xmlns:astest="http://jboss.org/ns/test/ant/astest">
+
+  <property environment="env"/>
+  <property name="jboss.home" value="${env.JBOSS_HOME}"/>
+  <property name="product.dir" value="${env.DTF_HOME}/JBossTS-JTA-QA/"/>
+
+  <property name="astest.jar.dir" value="${product.dir}/qa/resources"/>
+  <property name="astest.jar.name" value="astest.jar"/>
+  <property name="astest.jar.deploy.dir" value="qa/lib"/>
+
+  <property name="node0" value="localhost" />
+  <property name="node1" value="192.168.1.106" />
+
+  <property name="driver.home" value="${product.dir}/dbdrivers"/>
+
+  <!--
+      import configuration settings for the tests
+    -->
+  <import file="imports/test-config.xml"/>
+  
+  
+  <!--
+      Main targets intended for JBossAS Testsuite optional task
+    -->
+  <target name="crash-tests" depends="want-all-dbs, want-all-tstypes, want-all-tsdemarc, want-all-testcases, crash-tests-single" />
+  
+  <target name="crash-tests-single-db" depends="want-all-tstypes, want-all-tsdemarc, want-all-testcases, crash-tests-single" />
+
+  <target name="crash-tests-single-db-tstype" depends="want-all-tsdemarc, want-all-testcases, crash-tests-single" />
+  
+  <target name="crash-tests-single" depends="init, set-db, prepare-drivers, set-tstype, set-tsdemarc, set-testcase, crash-tests-tstype-jta, crash-tests-tstype-jts" />
+
+
+  <!--
+      Other targets... 
+   -->
+  <target name="init">
+  	<echo message="jboss.home=${jboss.home}"/>
+    <property name="wipeOutTxsInDoubt" value="true" />
+  </target>
+  
+  <target name="set-db">
+    <condition property="want.psql_8.2">
+       <equals arg1="${jbossts.db}" arg2="psql_8.2"/>
+    </condition>
+    <condition property="want.psql_8.3">
+       <equals arg1="${jbossts.db}" arg2="psql_8.3"/>
+    </condition>
+    <condition property="want.sybase_15">
+       <equals arg1="${jbossts.db}" arg2="sybase_15"/>
+    </condition>
+    <condition property="want.oracle_10">
+       <equals arg1="${jbossts.db}" arg2="oracle_10"/>
+    </condition>
+    <condition property="want.oracle_11">
+       <equals arg1="${jbossts.db}" arg2="oracle_11"/>
+    </condition>
+    <condition property="want.oracle_11_r2">
+       <equals arg1="${jbossts.db}" arg2="oracle_11_r2"/>
+    </condition>
+    <condition property="want.db2_9.7">
+       <equals arg1="${jbossts.db}" arg2="db2_9.7"/>
+    </condition>
+    <condition property="want.mysql_5.0">
+       <equals arg1="${jbossts.db}" arg2="mysql_5.0"/>
+    </condition>
+    <condition property="want.mysql_5.1">
+       <equals arg1="${jbossts.db}" arg2="mysql_5.1"/>
+    </condition>
+    <condition property="want.mssql_2005">
+       <equals arg1="${jbossts.db}" arg2="mssql_2005"/>
+    </condition>
+    <condition property="want.mssql_2008">
+       <equals arg1="${jbossts.db}" arg2="mssql_2008"/>
+    </condition>
+    <condition property="want.oracle_rac">
+       <equals arg1="${jbossts.db}" arg2="oracle_rac"/>
+    </condition>
+    <condition property="want.oracle_rac_lb">
+       <equals arg1="${jbossts.db}" arg2="oracle_rac_lb"/>
+    </condition>
+    <condition property="want.oracle_rac_r2">
+       <equals arg1="${jbossts.db}" arg2="oracle_rac_r2"/>
+    </condition>
+    <condition property="want.oracle_rac_r2_lb">
+       <equals arg1="${jbossts.db}" arg2="oracle_rac_r2_lb"/>
+    </condition>
+  </target>
+	
+  <target name="want-all-dbs">
+  	<property name="want.psql_8.2" value="true" />
+  	<property name="want.psql_8.3" value="true" />
+  	<property name="want.sybase_15" value="true" />
+  	<property name="want.oracle_10" value="true" />
+  	<property name="want.oracle_11" value="true" />
+  	<property name="want.oracle_11_r2" value="true" />
+  	<property name="want.db2_9.7" value="true" />
+  	<property name="want.mysql_5.0" value="true" />
+  	<property name="want.mysql_5.1" value="true" />
+  	<property name="want.mssql_2005" value="true" />
+  	<property name="want.mssql_2008" value="true" />
+  	<property name="want.oracle_rac" value="true" />
+  	<property name="want.oracle_rac_lb" value="true" />
+  	<property name="want.oracle_rac_r2" value="true" />
+  	<property name="want.oracle_rac_r2_lb" value="true" />
+  </target>
+
+  <target name="set-tstype">
+    <condition property="want.tstype.jta">
+       <equals arg1="${jbossts.tstype}" arg2="jta"/>
+    </condition>
+    <condition property="want.tstype.jts">
+       <equals arg1="${jbossts.tstype}" arg2="jts"/>
+    </condition>
+  </target>
+	
+  <target name="want-all-tstypes">
+  	<property name="want.tstype.jta" value="true" />
+  	<property name="want.tstype.jts" value="true" />
+  </target>
+
+  <target name="set-tsdemarc">
+    <condition property="want.cmt">
+       <equals arg1="${jbossts.tsdemarc}" arg2="cmt"/>
+    </condition>
+    <condition property="want.bmt">
+       <equals arg1="${jbossts.tsdemarc}" arg2="bmt"/>
+    </condition>
+  </target>
+	
+  <target name="want-all-tsdemarc">
+  	<property name="want.cmt" value="true" />
+  	<property name="want.bmt" value="true" />
+  </target>
+
+  <target name="set-testcase">
+    <condition property="want.none">
+       <equals arg1="${jbossts.testcase}" arg2="none"/>
+    </condition>
+    <condition property="want.none.rev">
+       <equals arg1="${jbossts.testcase}" arg2="none.rev"/>
+    </condition>
+    <condition property="want.prepare_ex">
+       <equals arg1="${jbossts.testcase}" arg2="prepare_ex"/>
+    </condition>
+    <condition property="want.prepare_ex.rev">
+       <equals arg1="${jbossts.testcase}" arg2="prepare_ex.rev"/>
+    </condition>
+    <condition property="want.prepare_halt">
+       <equals arg1="${jbossts.testcase}" arg2="prepare_halt"/>
+    </condition>
+    <condition property="want.prepare_halt.rev">
+       <equals arg1="${jbossts.testcase}" arg2="prepare_halt.rev"/>
+    </condition>
+    <condition property="want.commit_halt">
+       <equals arg1="${jbossts.testcase}" arg2="commit_halt"/>
+    </condition>
+    <condition property="want.commit_halt.rev">
+       <equals arg1="${jbossts.testcase}" arg2="commit_halt.rev"/>
+    </condition>
+  </target>
+	
+  <target name="want-all-testcases">
+    <property name="want.prepare_ex" value="true" />
+    <property name="want.prepare_ex.rev" value="true" />
+    <property name="want.prepare_halt" value="true" />
+    <property name="want.prepare_halt.rev" value="true" />
+    <property name="want.commit_halt.rev" value="true" />
+  </target>
+
+	
+  <target name="crash-tests-tstype-jta" if="want.tstype.jta">
+  	<antcall target="call-tests-for-all-dbs"><param name="tstype" value="jta"/><param name="call.target" value="crash-tests-for-database"/></antcall>
+  </target>
+  
+  <target name="crash-tests-tstype-jts" if="want.tstype.jts">
+  	<antcall target="call-tests-for-all-dbs"><param name="tstype" value="jts"/><param name="call.target" value="crash-tests-for-database"/></antcall>
+  </target>
+
+  <target name="call-tests-for-all-dbs">
+  	<antcall target="call-tests-for-psql_8.2"/>
+  	<antcall target="call-tests-for-psql_8.3"/>
+  	<antcall target="call-tests-for-oracle_10"/>
+  	<antcall target="call-tests-for-oracle_11"/>
+  	<antcall target="call-tests-for-oracle_11_r2"/>
+  	<antcall target="call-tests-for-mssql_2005"/>
+  	<antcall target="call-tests-for-mssql_2008"/>
+  	<antcall target="call-tests-for-mysql_5.0"/>
+  	<antcall target="call-tests-for-mysql_5.1"/>
+  	<antcall target="call-tests-for-db2_9.7"/>
+  	<antcall target="call-tests-for-sybase_15"/>
+  	<antcall target="call-tests-for-oracle_rac"/>
+  	<antcall target="call-tests-for-oracle_rac_lb"/>
+  	<antcall target="call-tests-for-oracle_rac_r2"/>
+  	<antcall target="call-tests-for-oracle_rac_r2_lb"/>
+  </target>
+
+  <target name="call-tests-for-psql_8.2" if="want.psql_8.2">
+    <antcall target="${call.target}">
+      <param name="dbdriver" value="${driver.name.psql_8.2}"/>
+      <param name="datasource" value="postgres82-xa-ds.xml" /> 
+   	  <param name="dbname" value="psql82" /> 
+    </antcall>
+  </target>
+	
+  <target name="call-tests-for-psql_8.3" if="want.psql_8.3">
+    <antcall target="${call.target}">
+      <param name="dbdriver" value="${driver.name.psql_8.3}"/>
+      <param name="datasource" value="postgres83-xa-ds.xml" /> 
+   	  <param name="dbname" value="psql83" /> 
+    </antcall>
+  </target>
+
+  <target name="call-tests-for-oracle_10" if="want.oracle_10">
+  	<antcall target="${call.target}">
+  	  <param name="dbdriver" value="${driver.name.oracle_10}"/>
+  	  <param name="datasource" value="oracle10-xa-ds.xml" /> 
+   	  <param name="dbname" value="oracle10" /> 
+    </antcall>
+  </target>
+  	
+  <target name="call-tests-for-oracle_11" if="want.oracle_11">
+  	<antcall target="${call.target}">
+  	  <param name="dbdriver" value="${driver.name.oracle_11}"/>
+  	  <param name="datasource" value="oracle11-xa-ds.xml" /> 
+   	  <param name="dbname" value="oracle11" /> 
+    </antcall>
+  </target>
+
+  <target name="call-tests-for-oracle_11_r2" if="want.oracle_11_r2">
+    <antcall target="${call.target}">
+      <param name="dbdriver" value="${driver.name.oracle_11}"/>
+      <param name="datasource" value="oracle11-r2-xa-ds.xml" /> 
+      <param name="dbname" value="oracle11_r2" /> 
+    </antcall>
+  </target>
+
+  <target name="call-tests-for-oracle_rac" if="want.oracle_rac">
+    <antcall target="${call.target}">
+      <param name="dbdriver" value="${driver.name.oracle_11}"/>
+      <param name="datasource" value="oracle-rac1-xa-ds.xml" /> 
+      <param name="dbname" value="oracle_rac" /> 
+    </antcall>
+  </target>
+
+  <target name="call-tests-for-oracle_rac_lb" if="want.oracle_rac_lb">
+    <antcall target="${call.target}">
+      <param name="dbdriver" value="${driver.name.oracle_11}"/>
+      <param name="datasource" value="oracle-rac-lb-xa-ds.xml" /> 
+      <param name="dbname" value="oracle_rac_lb" /> 
+    </antcall>
+  </target>
+
+  <target name="call-tests-for-oracle_rac_r2" if="want.oracle_rac_r2">
+    <antcall target="${call.target}">
+      <param name="dbdriver" value="${driver.name.oracle_11}"/>
+      <param name="datasource" value="oracle-rac-r2-1-xa-ds.xml" /> 
+      <param name="dbname" value="oracle_rac_r2" /> 
+    </antcall>
+  </target>
+
+  <target name="call-tests-for-oracle_rac_r2_lb" if="want.oracle_rac_r2_lb">
+    <antcall target="${call.target}">
+      <param name="dbdriver" value="${driver.name.oracle_11}"/>
+      <param name="datasource" value="oracle-rac-r2-lb-xa-ds.xml" /> 
+      <param name="dbname" value="oracle_rac_r2_lb" /> 
+    </antcall>
+  </target>
+
+  <target name="call-tests-for-mssql_2005" if="want.mssql_2005">
+  	<antcall target="${call.target}">
+  	  <param name="dbdriver" value="${driver.name.mssql_2005}"/>
+  	  <param name="datasource" value="mssql2005-xa-ds.xml" /> 
+   	  <param name="dbname" value="mssql2005" /> 
+    </antcall>
+  </target>
+	
+  <target name="call-tests-for-mssql_2008" if="want.mssql_2008">
+  	<antcall target="${call.target}">
+  	  <param name="dbdriver" value="${driver.name.mssql_2008}"/>
+  	  <param name="datasource" value="mssql2008-xa-ds.xml" /> 
+   	  <param name="dbname" value="mssql2008" /> 
+    </antcall>
+  </target>
+  	
+  <target name="call-tests-for-mysql_5.0" if="want.mysql_5.0">
+  	<antcall target="${call.target}">
+  	  <param name="dbdriver" value="${driver.name.mysql_5.0}"/>
+  	  <param name="datasource" value="mysql50-xa-ds.xml" /> 
+   	  <param name="dbname" value="mysql50" /> 
+    </antcall>
+  </target>
+	             
+  <target name="call-tests-for-mysql_5.1" if="want.mysql_5.1">
+  	<antcall target="${call.target}">
+  	  <param name="dbdriver" value="${driver.name.mysql_5.1}"/>
+  	  <param name="datasource" value="mysql51-xa-ds.xml" /> 
+   	  <param name="dbname" value="mysql51" /> 
+    </antcall>
+  </target>
+
+  <target name="call-tests-for-db2_9.7" if="want.db2_9.7">
+  	<antcall target="${call.target}">
+  	  <param name="dbdriver" value="${driver.name.db2_9.7}" />
+  	  <param name="datasource" value="db2_97-xa-ds.xml" /> 
+   	  <param name="dbname" value="db2_9" /> 
+    </antcall>
+  </target>
+	  	
+  <target name="call-tests-for-sybase_15" if="want.sybase_15">
+  	<antcall target="${call.target}">
+  	  <param name="dbdriver" value="${driver.name.sybase_15}"/>
+  	  <param name="datasource" value="sybase15-xa-ds.xml" /> 
+   	  <param name="dbname" value="sybase15" /> 
+    </antcall>
+  </target>
+
+
+
+  <target name="crash-tests-for-database" depends="crash-tests-for-database-cmt, crash-tests-for-database-bmt" />
+
+  <target name="crash-tests-for-database-cmt" if="want.cmt">
+    <antcall target="crash-tests-all-testcases"><param name="cmt" value="true" /></antcall>
+  </target>
+	
+  <target name="crash-tests-for-database-bmt" if="want.bmt">
+    <antcall target="crash-tests-all-testcases"><param name="cmt" value="false" /></antcall>
+  </target>
+	
+	
+  <target name="crash-tests-all-testcases" 
+  		depends="testcase-none,
+  		         testcase-none-rev,
+  				 testcase-prepare_ex, 
+  		         testcase-prepare_ex-rev, 
+  		         testcase-prepare_halt, 
+  		         testcase-prepare_halt-rev, 
+  		         testcase-commit_halt-rev" />
+
+  <target name="testcase-none" if="want.none">
+        <antcall target="execute-crash-recovery-test">
+            <param name="specs" value="none"/><param name="reverseOrder" value="false"/><param name="rollbackExpected" value="false"/>
+        </antcall>
+  </target>
+
+  <target name="testcase-none-rev" if="want.none.rev">
+        <antcall target="execute-crash-recovery-test">
+        	<param name="specs" value="none"/><param name="reverseOrder" value="true"/><param name="rollbackExpected" value="false"/>
+        </antcall>
+  </target>
+
+  <target name="testcase-prepare_ex" if="want.prepare_ex">
+        <antcall target="execute-crash-recovery-test">
+        	<param name="specs" value="prepare_ex"/><param name="reverseOrder" value="false"/><param name="rollbackExpected" value="true"/>
+        </antcall>
+  </target>
+
+  <target name="testcase-prepare_ex-rev" if="want.prepare_ex.rev">
+        <antcall target="execute-crash-recovery-test">
+        	<param name="specs" value="prepare_ex"/><param name="reverseOrder" value="true"/><param name="rollbackExpected" value="true"/>
+        </antcall>
+  </target>
+
+  <target name="testcase-prepare_halt" if="want.prepare_halt">
+        <antcall target="execute-crash-recovery-test">
+        	<param name="specs" value="prepare_halt"/><param name="reverseOrder" value="false"/><param name="rollbackExpected" value="true"/>
+        </antcall>
+  </target>
+
+  <target name="testcase-prepare_halt-rev" if="want.prepare_halt.rev">
+        <antcall target="execute-crash-recovery-test">
+        	<param name="specs" value="prepare_halt"/><param name="reverseOrder" value="true"/><param name="rollbackExpected" value="true"/>
+        </antcall>
+  </target>
+
+  <target name="testcase-commit_halt-rev" if="want.commit_halt.rev">
+        <antcall target="execute-crash-recovery-test">
+        	<param name="specs" value="commit_halt"/><param name="reverseOrder" value="true"/><param name="rollbackExpected" value="false"/>
+        </antcall>  	
+  </target>
+
+  <target name="testcase-commit_halt" if="want.commit_halt">
+        <!-- DISABLED test-case: this test scenario is invalid for the current version of JBossTS --> 
+        <antcall target="execute-crash-recovery-test">
+        	<param name="specs" value="commit_halt"/><param name="reverseOrder" value="false"/><param name="rollbackExpected" value="false"/>
+        </antcall>
+  </target>
+
+  <target name="execute-crash-recovery-test" depends="hack-before-astest-run, crash-recovery-test, hack-after-astest-run" />
+
+  <!--
+    Note: If you want to wipe out txs in doubt before and after test you have to set property 'wipeOutTxsInDoubt' to true.
+    -->
+  <target name="crash-recovery-test">
+<!--    <attribute name="specs"/>
+    <attribute name="datasource"/>
+    <attribute name="dbdriver"/>
+    <attribute name="dbname"/>
+    <attribute name="cmt"/>
+    <attribute name="tstype"/>
+    <attribute name="reverseOrder"/>
+    <attribute name="rollbackExpected"/>  -->
+    <sequential>
+      
+      <condition property="test.name.cmt" value="cmt" else="bmt">
+      	<istrue value="${cmt}"/>
+      </condition>
+      <condition property="test.name.reverseOrder" value="-reverse" else="">
+        <istrue value="${reverseOrder}"/>
+      </condition>
+      <property name="testname" value="${tstype}-${specs}-${test.name.cmt}${test.name.reverseOrder}"/>
+
+      <condition property="astest.app.jar.name" value="${astest.alternative.jar.name}">
+        <isset property="astest.alternative.jar.name"/>
+      </condition>
+      <property name="astest.app.jar.name" value="${astest.jar.name}" />
+
+      <condition property="storeType" value="StateManager/BasicAction/TwoPhaseCoordinator/ArjunaTransactionImple">
+        <equals arg1="${tstype}" arg2="jts" />
+      </condition>
+      <property name="storeType" value="StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction" />
+     
+      <astest:server method="start" serverName="crashrecovery-${tstype}" >
+        <deploy from="dbdrivers/${dbdriver}" to="lib/${dbdriver}" />
+        <deploy from="resources/${datasource}" to="deploy/${datasource}" />
+        <deploy from="${astest.jar.deploy.dir}/${astest.app.jar.name}" to="deploy/${astest.app.jar.name}" />
+      </astest:server>
+      <astest:action abortOnFail="false" waitFor="10000" impl="org.jboss.test.jbossts.taskdefs.JUnitClientAction">
+        <param key="testClass" value="org.jboss.test.jbossts.ASCrashRecovery01.TestWithJPA" />
+        <param key="name" value="${dbname}-${testname}" />
+        <param key="serverName" value="crashrecovery-${tstype}" />
+        <param key="specs" value="${specs}" />
+        <param key="cmt" value="${cmt}" />
+        <param key="storeType" value="${storeType}" />
+        <param key="reverseOrder" value="${reverseOrder}" />
+        <param key="rollbackExpected" value="${rollbackExpected}" />
+        <param key="wipeOutTxsInDoubtBeforeTest" value="${wipeOutTxsInDoubtBeforeTest}" />
+        <param key="wipeOutTxsInDoubt" value="${wipeOutTxsInDoubt}" />
+        <param key="debug" value="true" />
+        <param key="reportFile" value="${build.reports}/TEST-org.jboss.test.jbossts.ASCrashRecovery01.TestWithJPA-${dbname}-${testname}.xml" />
+        <param key="testTime" value="${testTime}" />
+      </astest:action>
+      <astest:server method="stop" serverName="crashrecovery-${tstype}" >
+        <undeploy from="deploy/${astest.app.jar.name}" />
+        <undeploy from="deploy/${datasource}" />
+        <undeploy from="lib/${dbdriver}" />    	
+      </astest:server>
+      
+      <!-- archive the server log -->
+      <zip destfile="${jboss.home}/server/crashrecovery-${tstype}/log/server-${dbname}-${testname}.log.zip">
+        <fileset file="${jboss.home}/server/crashrecovery-${tstype}/log/server.log"/>
+        <fileset file="${jboss.home}/server/crashrecovery-${tstype}/log/boot.log"/>
+      </zip>
+      <delete file="${jboss.home}/server/crashrecovery-${tstype}/log/server.log"/>
+      <delete file="${jboss.home}/server/crashrecovery-${tstype}/log/boot.log"/>
+      <copy todir="${jboss.home}/server/crashrecovery-${tstype}/data/tx-object-store-${dbname}-${testname}"> 
+        <fileset dir="${jboss.home}/server/crashrecovery-${tstype}/data/tx-object-store" />
+      </copy>
+      <delete dir="${jboss.home}/server/crashrecovery-${tstype}/data/tx-object-store"/>
+      <!-- delete work and tmp dirs otherwise tests failed due to permgen space - FIXME is this the right way how to ensure that? -->
+      <delete dir="${jboss.home}/server/crashrecovery-${tstype}/work"/>
+      <delete dir="${jboss.home}/server/crashrecovery-${tstype}/tmp"/>
+      
+    </sequential>
+  </target>
+
+  <target name="hack-before-astest-run" depends="hack-before-astest-run-for-db2_9.7, hack-before-astest-run-for-oracle_rac, hack-before-astest-run-for-oracle_rac_r2" />
+  
+  <target name="hack-after-astest-run" depends="hack-after-astest-run-for-db2_9.7, hack-after-astest-run-for-oracle_rac, hack-after-astest-run-for-oracle_rac_r2" />
+  
+  <target name="hack-before-astest-run-for-db2_9.7" if="want.db2_9.7">
+  	<!-- deploy license .jar file  -->
+  	<copy file="${product.dir}/dbdrivers/db2jcc_license_cu.jar" todir="${jboss.home}/server/crashrecovery-${tstype}/lib" />
+  	<!-- prepare hacked astest jar -->
+  	<property name="astest.alternative.jar.name" value="db2-${astest.jar.name}" />
+  	
+  	<available file="${astest.jar.dir}/${astest.alternative.jar.name}" 
+  	    property="have.db2.astest.alternative.jar" />
+    <antcall target="prepare-db2-alternative-jar" />
+  </target>
+  
+  <target name="prepare-db2-alternative-jar" unless="have.db2.astest.alternative.jar">
+  	<mkdir dir="${astest.jar.dir}/${astest.alternative.jar.name}_content"/>
+  	<unjar src="${astest.jar.dir}/${astest.jar.name}" dest="${astest.jar.dir}/${astest.alternative.jar.name}_content" />
+  	<available file="${astest.jar.dir}/${astest.alternative.jar.name}_content/META-INF/persistence.xml" 
+  	    property="have.persistence.xml" />
+  	<antcall target="change-hbm2ddl-update-to-none" />
+  	<jar destfile="${astest.jar.dir}/${astest.alternative.jar.name}">
+        <fileset dir="${astest.jar.dir}/${astest.alternative.jar.name}_content"/>
+  	</jar>
+  	<delete dir="${astest.jar.dir}/${astest.alternative.jar.name}_content" />
+  </target>
+  
+  <target name="change-hbm2ddl-update-to-none" if="have.persistence.xml">
+  	<replace file="${astest.jar.dir}/${astest.alternative.jar.name}_content/META-INF/persistence.xml" summary="true">
+  		<replacetoken><![CDATA[name="hibernate.hbm2ddl.auto" value="update"]]></replacetoken>
+  		<replacevalue><![CDATA[name="hibernate.hbm2ddl.auto" value="none"  ]]></replacevalue> 
+  	</replace>
+  </target>
+  
+  <target name="hack-after-astest-run-for-db2_9.7" if="want.db2_9.7">
+  	<!-- undeploy license .jar file  -->
+  	<delete file="${jboss.home}/server/crashrecovery-${tstype}/lib/db2jcc_license_cu.jar" />
+  </target>
+  
+  <target name="hack-before-astest-run-for-oracle_rac" if="want.oracle_rac">
+    <antcall target="hack-before-astest-run-for-oracle_racs"><param name="oracle_rac_second_ds" value="oracle-rac2-xa-ds.xml"/></antcall>
+  </target>
+  
+  <target name="hack-after-astest-run-for-oracle_rac" if="want.oracle_rac">
+    <antcall target="hack-after-astest-run-for-oracle_racs"><param name="oracle_rac_second_ds" value="oracle-rac2-xa-ds.xml"/></antcall>
+  </target>
+
+  <target name="hack-before-astest-run-for-oracle_rac_r2" if="want.oracle_rac_r2">
+    <antcall target="hack-before-astest-run-for-oracle_racs"><param name="oracle_rac_second_ds" value="oracle-rac-r2-2-xa-ds.xml"/></antcall>
+  </target>
+  
+  <target name="hack-after-astest-run-for-oracle_rac_r2" if="want.oracle_rac_r2">
+    <antcall target="hack-after-astest-run-for-oracle_racs"><param name="oracle_rac_second_ds" value="oracle-rac-r2-2-xa-ds.xml"/></antcall>
+  </target>
+
+  <target name="hack-before-astest-run-for-oracle_racs">
+    <!-- deploy the second DS configuration  -->
+    <copy file="${product.dir}/resources/${oracle_rac_second_ds}" todir="${jboss.home}/server/crashrecovery-${tstype}/deploy" />
+
+    <!-- hack the configuration of JBossTS in order to use the second datasource for crash recovery -->
+    <replace file="${jboss.home}/server/crashrecovery-${tstype}/deploy/transaction-jboss-beans.xml">
+      <replacetoken><![CDATA[com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=CrashRecoveryDS]]></replacetoken>
+      <replacevalue><![CDATA[com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=RecoveryDS]]></replacevalue>
+    </replace>
+  </target>
+
+  <target name="hack-after-astest-run-for-oracle_racs">
+    <!-- undeploy the second DS configuration -->
+    <delete file="${jboss.home}/server/crashrecovery-${tstype}/deploy/${oracle_rac_second_ds}" />
+  	
+    <!-- unhack the configuration of JBossTS -->
+    <replace file="${jboss.home}/server/crashrecovery-${tstype}/deploy/transaction-jboss-beans.xml">
+      <replacetoken><![CDATA[com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=RecoveryDS]]></replacetoken>
+      <replacevalue><![CDATA[com.arjuna.ats.internal.jbossatx.jta.AppServerJDBCXARecovery;jndiname=CrashRecoveryDS]]></replacevalue>
+    </replace>
+  </target>
+  
+  
+  <!-- 
+    Do use this target if you want to wipe out txs in doubt in all databases. 
+    -->
+  <target name="wipeout-txs-indoubt-all-dbs" depends="want-all-dbs, wipeout-txs-indoubt-single-db" />
+
+  <!-- 
+    Do use this target if you want to wipe out txs in doubt.
+    You can select the databases by setting jbossts.db property, see the 'set-db' target.
+   -->
+  <target name="wipeout-txs-indoubt-single-db" depends="set-db, prepare-drivers">
+    <property name="tstype" value="jta" />
+  	<antcall target="call-tests-for-all-dbs"><param name="call.target" value="execute-wipeout-txs-indoubt"/></antcall>
+  </target>
+  
+  <target name="execute-wipeout-txs-indoubt" depends="hack-before-astest-run, wipeout-txs-indoubt, hack-after-astest-run"/>
+  
+  <target name="wipeout-txs-indoubt">
+      <condition property="astest.app.jar.name" value="${astest.alternative.jar.name}">
+        <isset property="astest.alternative.jar.name"/>
+      </condition>
+      <property name="astest.app.jar.name" value="${astest.jar.name}" />
+
+      <astest:server method="start" serverName="crashrecovery-jta" >
+        <deploy from="dbdrivers/${dbdriver}" to="lib/${dbdriver}" />
+        <deploy from="resources/${datasource}" to="deploy/${datasource}" />
+        <deploy from="${astest.jar.deploy.dir}/${astest.app.jar.name}" to="deploy/${astest.app.jar.name}" />
+      </astest:server>
+      <astest:action abortOnFail="false" waitFor="10000" impl="org.jboss.test.jbossts.taskdefs.JUnitClientAction">
+        <param key="testClass" value="org.jboss.test.jbossts.ASCrashRecovery01.WipeOutTxsInDoubt" />
+        <param key="name" value="test-wipeout-txs-indoubt-${dbname}" />
+        <param key="serverName" value="crashrecovery-jta" />
+        <param key="debug" value="true" />
+        <param key="reportFile" value="${build.reports}/TEST-org.jboss.test.jbossts.ASCrashRecovery01.WipeOutTxsInDoubt-${dbname}.xml" />
+      </astest:action>
+      <astest:server method="stop" serverName="crashrecovery-jta" >
+        <undeploy from="deploy/${datasource}" />
+        <undeploy from="lib/${dbdriver}" />    	
+        <undeploy from="deploy/${astest.app.jar.name}" />
+      </astest:server>
+  </target>
+
+	
+	<!-- =====  get db drivers - borrowed from  https://svn.jboss.org/repos/labs/labs/jbosstm/trunk/qa/build.xml  ==== -->
+    <!-- set these to the location(s) of the database drivers -->
+	
+	<property name="driver.url" value="http://reports.qa.atl.jboss.com/jdbc-drivers/"/>
+    <property name="driver.name.psql_8.2" value="postgresql-8.2.jar"/>
+    <property name="driver.name.psql_8.3" value="postgresql-8.3.jar"/>
+    <property name="driver.name.sybase_15" value="jconn3.jar"/>
+    <property name="driver.name.oracle_10" value="ojdbc14.jar"/>
+    <property name="driver.name.oracle_11" value="ojdbc6.jar"/>
+    <property name="driver.name.db2_9.7" value="db2jcc.jar"/>
+    <property name="driver.name.mysql_5.0" value="mysql-connector-java-5.0.jar"/>
+    <property name="driver.name.mysql_5.1" value="mysql-connector-java-5.1.jar"/>
+    <property name="driver.name.mssql_2005" value="sqljdbc4.jar"/>
+    <property name="driver.name.mssql_2008" value="sqljdbc4.jar"/>
+	
+    <target name="prepare-drivers">
+       <available file="${driver.home}/${driver.name.psql_8.2}" property="have.dbdriver.psql_8.2" value="true"/>      
+       <available file="${driver.home}/${driver.name.psql_8.3}" property="have.dbdriver.psql_8.3" value="true"/>      
+       <available file="${driver.home}/${driver.name.sybase_15}" property="have.dbdriver.sybase_15" value="true"/>
+       <available file="${driver.home}/${driver.name.oracle_10}" property="have.dbdriver.oracle_10" value="true"/>   	
+       <available file="${driver.home}/${driver.name.oracle_11}" property="have.dbdriver.oracle_11" value="true"/>      
+       <available file="${driver.home}/${driver.name.db2_9.7}" property="have.dbdriver.db2_9.7" value="true"/>      
+       <available file="${driver.home}/${driver.name.mysql_5.0}" property="have.dbdriver.mysql_5.0" value="true"/>      
+       <available file="${driver.home}/${driver.name.mysql_5.1}" property="have.dbdriver.mysql_5.1" value="true"/>      
+       <available file="${driver.home}/${driver.name.mssql_2005}" property="have.dbdriver.mssql_2005" value="true"/>      
+       <available file="${driver.home}/${driver.name.mssql_2008}" property="have.dbdriver.mssql_2008" value="true"/>
+       <condition property="want.dbdriver.oracle_11">
+          <or>
+             <istrue value="${want.oracle_11}"/>
+             <istrue value="${want.oracle_11_r2}"/>
+             <istrue value="${want.oracle_rac}"/>
+             <istrue value="${want.oracle_rac_lb}"/>
+             <istrue value="${want.oracle_rac_r2}"/>
+             <istrue value="${want.oracle_rac_r2_lb}"/>
+          </or>
+       </condition>
+       
+       <mkdir dir="${driver.home}" />
+       <antcall target="get.drivers" />
+    </target>
+
+    <target name="get.drivers" 
+    	depends="get.driver.oracle_10, 
+    	         get.driver.oracle_11,
+                 get.driver.mssql_2005,
+    	         get.driver.mssql_2008,
+    	         get.driver.psql_8.3,
+    	         get.driver.psql_8.2,
+    	         get.driver.mysql_5.1,
+                 get.driver.mysql_5.0,
+    	         get.driver.db2_9.7,
+    	         get.driver.sybase_15" />
+    	
+    <target name="get.driver.oracle_10" unless="have.dbdriver.oracle_10" if="want.oracle_10">
+        <get src="${driver.url}/maven2/com/oracle/ojdbc14/10.2.0.4/ojdbc14-10.2.0.4.jar"
+             dest="${driver.home}/${driver.name.oracle_10}"/>
+    </target>
+    <target name="get.driver.oracle_11" unless="have.dbdriver.oracle_11" if="want.dbdriver.oracle_11">
+        <get src="${driver.url}/maven2/com/oracle/ojdbc6/11.2.0.1.0/ojdbc6-11.2.0.1.0.jar"
+             dest="${driver.home}/${driver.name.oracle_11}"/>
+    </target>
+    <target name="get.driver.mssql_2005" unless="have.dbdriver.mssql_2005" if="want.mssql_2005">
+        <get src="${driver.url}/maven2/com/microsoft/sqlserver/msjdbc/2.0.1008.2/msjdbc-2.0.1008.2-4.jar"
+             dest="${driver.home}/${driver.name.mssql_2005}"/>
+    </target>
+    <target name="get.driver.mssql_2008" unless="have.dbdriver.mssql_2008" if="want.mssql_2008">
+        <get src="${driver.url}/maven2/com/microsoft/sqlserver/msjdbc/2.0.1008.2/msjdbc-2.0.1008.2-4.jar"
+             dest="${driver.home}/${driver.name.mssql_2008}"/>
+    </target>
+    <target name="get.driver.psql_8.3" unless="have.dbdriver.psql_8.3" if="want.psql_8.3">
+        <get src="${driver.url}/postgresql-8.3-605.jdbc4.jar"
+             dest="${driver.home}/${driver.name.psql_8.3}"/>
+    </target>
+    <target name="get.driver.psql_8.2" unless="have.dbdriver.psql_8.2" if="want.psql_8.2">
+        <get src="${driver.url}/postgresql-8.2-510.jdbc4.jar"
+             dest="${driver.home}/${driver.name.psql_8.2}"/>
+    </target>
+    <target name="get.driver.mysql_5.1" unless="have.dbdriver.mysql_5.1" if="want.mysql_5.1">
+        <get src="${driver.url}/maven2/mysql/mysql-connector-java/5.1.12/mysql-connector-java-5.1.12.jar"
+             dest="${driver.home}/${driver.name.mysql_5.1}"/>
+    </target>
+    <target name="get.driver.mysql_5.0" unless="have.dbdriver.mysql_5.0" if="want.mysql_5.0">
+        <get src="${driver.url}/maven2/mysql/mysql-connector-java/5.0.8/mysql-connector-java-5.0.8.jar"
+             dest="${driver.home}/${driver.name.mysql_5.0}"/>
+    </target>
+    <target name="get.driver.db2_9.7" unless="have.dbdriver.db2_9.7" if="want.db2_9.7">
+        <get src="${driver.url}/maven2/com/ibm/db2jcc/3.57.86/db2jcc-3.57.86.jar"
+             dest="${driver.home}/${driver.name.db2_9.7}"/>
+        <get src="${driver.url}/maven2/com/ibm/db2jcc_license_cu/3.57.86/db2jcc_license_cu-3.57.86.jar"
+             dest="${driver.home}/db2jcc_license_cu.jar"/>
+    </target>
+    <target name="get.driver.sybase_15" unless="have.dbdriver.sybase_15" if="want.sybase_15">
+        <get src="${driver.url}/maven2/com/sybase/jconnect/6.0.5_26564/jconnect-6.0.5_26564.jar"
+             dest="${driver.home}/${driver.name.sybase_15}"/>
+    </target>
+
+</project>

Modified: branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/imports/test-config.xml
===================================================================
--- trunk/testsuite/src/resources/jbossts/scripts/imports/test-config.xml	2010-03-29 10:00:49 UTC (rev 103102)
+++ branches/JBPAPP_4_2_0_GA_CP/testsuite/src/resources/jbossts/scripts/imports/test-config.xml	2010-04-13 07:23:23 UTC (rev 103888)
@@ -46,11 +46,6 @@
      <spec name= "prepare_ex" mode="XAEXCEPTION" type="XARES_PREPARE" modeArg="XAER_RMFAIL" />
      <spec name= "prepare_halt" mode="HALT" type="XARES_PREPARE" />
      <spec name= "commit_halt" mode="HALT" type="XARES_COMMIT" />
-     <spec name= "prepare_ex_rollback" mode="XAEXCEPTION" type="XARES_PREPARE" modeArg="XA_RBROLLBACK" />
-     <spec name= "pre_prepare_rollbackonly" mode="ROLLBACK_ONLY" type="PRE_PREPARE" />
-     <spec name= "pre_prepare_ejbexception" mode="EJBEXCEPTION" type="PRE_PREPARE" modeArg="ejb exception before commit" />
-     <spec name= "synch_before_rollbackonly" mode="ROLLBACK_ONLY" type="SYNCH_BEFORE" />
-     <spec name= "pre_prepare_suspend" mode="SUSPEND" type="PRE_PREPARE" modeArg="310000" />
 
       <!--
          Profiles for JBossAS Testsuite integration
@@ -75,34 +70,5 @@
       <sysproperty key="resolve.dns" value="false" />
     </server>
 
-    <!--
-        Profiles for JTS Propagation Tests  
-     -->
-    <server name="jts-propagation-node0" host="${node0}">
-      <jvmarg value="-Xms128m" />
-      <jvmarg value="-Xmx512m" />
-      <jvmarg value="-XX:MaxPermSize=512m" />
-      <sysproperty key="java.net.preferIPv4Stack" value="true" />
-      <sysproperty key="java.endorsed.dirs" value="${jboss.dist}/lib/endorsed" />
-      <sysproperty key="resolve.dns" value="false" />
-      <sysproperty key="jgroups.udp.ip_ttl" value="${jbosstest.udp.ip_ttl}" />
-      <sysproperty key="jboss.messaging.ServerPeerID" value="0" />
-      <sysproperty key="jgroups.bind_addr" value="${node0}" />
-    </server>
-
-    <server name="jts-propagation-node1" host="${node1}" httpPort="8180" rmiPort="1199">
-      <jvmarg value="-Xms128m" />
-      <jvmarg value="-Xmx512m" />
-      <jvmarg value="-XX:MaxPermSize=512m" />
-      <jvmarg value="-XX:-UseGCOverheadLimit" />
-      <sysproperty key="java.net.preferIPv4Stack" value="true" />
-      <sysproperty key="java.endorsed.dirs" value="${jboss.dist}/lib/endorsed" />
-      <sysproperty key="resolve.dns" value="false" />
-      <sysproperty key="jgroups.udp.ip_ttl" value="${jbosstest.udp.ip_ttl}" />
-      <sysproperty key="jboss.messaging.ServerPeerID" value="1" />
-      <sysproperty key="jgroups.bind_addr" value="${node1}" />
-      <sysproperty key="jboss.service.binding.set" value="ports-01" />
-    </server>
-
   </astest:config>
 </project>




More information about the jboss-cvs-commits mailing list