Author: jeff.yuchang
Date: 2009-11-17 09:26:39 -0500 (Tue, 17 Nov 2009)
New Revision: 274
Added:
trunk/distribution/src/main/assembly/src.xml
trunk/qa/jdbc/
trunk/qa/jdbc/derby.properties
trunk/qa/jdbc/hsql.properties
trunk/qa/jdbc/mysql.properties
trunk/qa/jdbc/oracle.properties
trunk/qa/jdbc/postgres.properties
trunk/qa/jdbc/sqlserver.properties
Modified:
trunk/distribution/pom.xml
trunk/distribution/src/main/release/db/jdbc/mysql.properties
trunk/distribution/src/main/release/db/jdbc/oracle.properties
trunk/distribution/src/main/release/db/jdbc/postgres.properties
trunk/distribution/src/main/release/db/jdbc/sqlserver.properties
trunk/integration-tests/build.xml
trunk/qa/build.xml
trunk/qa/hudson-riftsaw-db.sh
trunk/qa/hudson-riftsaw-jboss.sh
trunk/qa/hudson-riftsaw-jdk5.sh
trunk/qa/hudson-riftsaw-ws.sh
Log:
* added assembly script for source distribution.
* using dummy data in distribution, while put qa's jdbc files in qa module.
Modified: trunk/distribution/pom.xml
===================================================================
--- trunk/distribution/pom.xml 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/distribution/pom.xml 2009-11-17 14:26:39 UTC (rev 274)
@@ -41,7 +41,6 @@
<postgresql.version>8.3-603.jdbc3</postgresql.version>
<jtds.version>1.2.2</jtds.version>
<derby.version>10.4.1.3</derby.version>
- <oracle.version>10.2.0.4</oracle.version>
</properties>
<dependencies>
@@ -141,7 +140,6 @@
</dependencies>
<build>
- <finalName>riftsaw-${project.version}</finalName>
<resources>
</resources>
<plugins>
@@ -156,12 +154,29 @@
<goal>single</goal>
</goals>
<configuration>
+ <finalName>riftsaw-${project.version}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/assembly/bin.xml</descriptor>
</descriptors>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</execution>
+ <execution>
+ <id>distribution-package-source</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>riftsaw-${project.version}-src</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>src/main/assembly/src.xml</descriptor>
+ </descriptors>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ </configuration>
+ </execution>
</executions>
</plugin>
Added: trunk/distribution/src/main/assembly/src.xml
===================================================================
--- trunk/distribution/src/main/assembly/src.xml (rev 0)
+++ trunk/distribution/src/main/assembly/src.xml 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2008
+-->
+<assembly>
+ <!-- id typically identifies the "type" (src vs bin etc) of the assembly
-->
+ <id>src</id>
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <fileSets>
+ <fileSet>
+ <directory>../console</directory>
+ <outputDirectory>/console</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../distribution</directory>
+ <outputDirectory>/distribution</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../docs</directory>
+ <outputDirectory>/docs</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../integration-tests</directory>
+ <outputDirectory>/integration-tests</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../runtime</directory>
+ <outputDirectory>/runtime</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../samples</directory>
+ <outputDirectory>/samples</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>..</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+</assembly>
Modified: trunk/distribution/src/main/release/db/jdbc/mysql.properties
===================================================================
--- trunk/distribution/src/main/release/db/jdbc/mysql.properties 2009-11-17 12:39:05 UTC
(rev 273)
+++ trunk/distribution/src/main/release/db/jdbc/mysql.properties 2009-11-17 14:26:39 UTC
(rev 274)
@@ -1,5 +1,5 @@
-connection.url=jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com:3306/riftsaw
+connection.url=jdbc:mysql://localhost:3306/riftsaw
driver=com.mysql.jdbc.Driver
username=riftsaw
-password=rsqapwd
+password=riftsaw
dialect=org.hibernate.dialect.MySQLInnoDBDialect
\ No newline at end of file
Modified: trunk/distribution/src/main/release/db/jdbc/oracle.properties
===================================================================
--- trunk/distribution/src/main/release/db/jdbc/oracle.properties 2009-11-17 12:39:05 UTC
(rev 273)
+++ trunk/distribution/src/main/release/db/jdbc/oracle.properties 2009-11-17 14:26:39 UTC
(rev 274)
@@ -1,5 +1,5 @@
-connection.url=jdbc:oracle:thin:@vmg05.mw.lab.eng.bos.redhat.com:1521:qaora10
+connection.url=jdbc:oracle:thin:@localhost:1521:riftsaw
driver=oracle.jdbc.driver.OracleDriver
username=riftsaw
-password=rsqapwd
+password=riftsaw
dialect=org.hibernate.dialect.Oracle9Dialect
\ No newline at end of file
Modified: trunk/distribution/src/main/release/db/jdbc/postgres.properties
===================================================================
--- trunk/distribution/src/main/release/db/jdbc/postgres.properties 2009-11-17 12:39:05
UTC (rev 273)
+++ trunk/distribution/src/main/release/db/jdbc/postgres.properties 2009-11-17 14:26:39
UTC (rev 274)
@@ -1,5 +1,5 @@
-connection.url=jdbc:postgresql://vmg01.mw.lab.eng.bos.redhat.com/riftsaw
+connection.url=jdbc:postgresql://localhost/riftsaw
driver=org.postgresql.Driver
username=riftsaw
-password=rsqapwd
+password=riftsaw
dialect=org.hibernate.dialect.PostgreSQLDialect
\ No newline at end of file
Modified: trunk/distribution/src/main/release/db/jdbc/sqlserver.properties
===================================================================
--- trunk/distribution/src/main/release/db/jdbc/sqlserver.properties 2009-11-17 12:39:05
UTC (rev 273)
+++ trunk/distribution/src/main/release/db/jdbc/sqlserver.properties 2009-11-17 14:26:39
UTC (rev 274)
@@ -1,5 +1,5 @@
-connection.url=jdbc:jtds:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433/riftsaw
+connection.url=jdbc:jtds:sqlserver://localhost:1433/riftsaw
driver=net.sourceforge.jtds.jdbc.Driver
username=riftsaw
-password=rsqapwd
+password=riftsaw
dialect=org.hibernate.dialect.SQLServerDialect
\ No newline at end of file
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/integration-tests/build.xml 2009-11-17 14:26:39 UTC (rev 274)
@@ -2,18 +2,32 @@
<property environment="env" />
<property name="riftsaw.engine.version" value="2.0-SNAPSHOT"
/>
+ <property name="replace.qa.jdbc" value="true" />
<property file="${riftsaw.test.deployment.properties}" />
<condition property="is.ojdbc.available">
<available file="${basedir}/../distribution/target/libs/ojdbc14.jar"
/>
</condition>
+
+ <condition property="is.replace.qa.jdbc">
+ <equals arg1="true" arg2="${replace.qa.jdbc}" />
+ </condition>
<target name="copy.ojdbc" if="is.ojdbc.available">
<copy file="${basedir}/../distribution/target/libs/ojdbc14.jar"
todir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/db/drivers"/>
</target>
+ <target name="replace.jdbc.files"
if="is.replace.qa.jdbc">
+ <echo>Replacing the QA's Lab jdbc files</echo>
+ <copy
todir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/db/jdbc">
+ <fileset dir="${basedir}/../qa/jdbc">
+ <include name="*.properties" />
+ </fileset>
+ </copy>
+ </target>
+
<target name="unpack-distribution">
<mkdir dir="${basedir}/../distribution/target/dist"/>
<unzip dest="${basedir}/../distribution/target/dist"
src="${basedir}/../distribution/target/riftsaw-${riftsaw.engine.version}.zip"/>
@@ -22,7 +36,8 @@
</target>
<target name="deploy-riftsaw" >
- <ant antfile="build.xml"
+ <antcall target="replace.jdbc.files" />
+ <ant antfile="build.xml"
target="deploy"
dir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install">
<property name="org.jboss.as.home"
value="${org.jboss.as.home}" />
Modified: trunk/qa/build.xml
===================================================================
--- trunk/qa/build.xml 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/build.xml 2009-11-17 14:26:39 UTC (rev 274)
@@ -31,13 +31,15 @@
<property name="org.jboss.as.config" value="default" />
<property name="ojdbc.url"
value="http://www.qa.jboss.com/jdbc-drivers/maven2/com/oracle/ojdbc1...
-
+ <property name="replace.qa.jdbc" value="true" />
+
+ <echo message="===============================" />
<echo message="database.......... ${database}" />
<echo message="riftsaw.version...... ${riftsaw.version}" />
<echo message="riftsaw.home......... ${riftsaw.home}" />
<echo message="jbossesb.home.. ${jboss.home}" />
+ <echo message="===============================" />
-
<condition property="is.jboss.distro.available">
<available file="${jboss.distro.path}" />
</condition>
@@ -48,6 +50,10 @@
<condition property="is.oracle">
<equals arg1="oracle" arg2="${database}"/>
</condition>
+
+ <condition property="is.replace.qa.jdbc">
+ <equals arg1="true" arg2="${replace.qa.jdbc}" />
+ </condition>
<!-- remove the riftsaw.home -->
<target name="clean"
@@ -82,6 +88,7 @@
</ant>
<antcall target="get.ojdbc" />
+
</target>
<!-- ### INSTALL RiftSaw into JBossESB
################################################## -->
@@ -122,7 +129,9 @@
<!-- ### Install and Cleanup DB
###################################################### -->
<target name="unpack-riftsaw">
<unzip dest="../distribution/target"
src="../distribution/target/riftsaw-${riftsaw.version}.zip"/>
+ <antcall target="replace.jdbc.files" />
</target>
+
<target name="drop.riftsaw.schema" depends="unpack-riftsaw">
<echo>clean the riftsaw database schema...</echo>
<ant dir="../distribution/target/riftsaw-${riftsaw.version}/db"
target="drop.riftsaw.schema" >
@@ -130,6 +139,15 @@
</ant>
</target>
+ <target name="replace.jdbc.files" if="is.replace.qa.jdbc">
+ <echo>Replacing the QA's Lab jdbc files</echo>
+ <copy
todir="${basedir}/../distribution/target/riftsaw-${riftsaw.engine.version}/db/jdbc">
+ <fileset dir="${basedir}/../qa/jdbc">
+ <include name="*.properties" />
+ </fileset>
+ </copy>
+ </target>
+
<target name="stop-server" >
<echo>Stopping the server</echo>
<echo>Server is at ${org.jboss.as.home}</echo>
Modified: trunk/qa/hudson-riftsaw-db.sh
===================================================================
--- trunk/qa/hudson-riftsaw-db.sh 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/hudson-riftsaw-db.sh 2009-11-17 14:26:39 UTC (rev 274)
@@ -3,34 +3,31 @@
# Run Riftsaw Integration tests.
MAVEN_OPTS="-Xms512M -Xmx1024M"
+
RIFTSAW_PARENT_DIR="$WORKSPACE"
+
JBOSS_VERSION="5.1.0.GA"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+AS_CONFIG="default"
+REPLACE_QA_JDBC="true"
-ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE"
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE
-Dreplace.qa.jdbc=$REPLACE_QA_JDBC -Dorg.jboss.as.home=$AS_HOME
-Dorg.jboss.as.config=$AS_CONFIG"
echo ANT_PROPERTIES=${ANT_PROPERTIES}
-# firstly build the Riftsaw and run unit tests
-echo build RiftSaw and running unit test
+#build RiftSaw and running unit tests
cd ..
mvn clean install
-# run integration test
-echo cleanup the RiftSaw HOME
+#cleanup the RiftSaw HOME
cd qa
+ant $ANT_PROPERTIES stop-server
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
# clean up the database
-echo clean up the database
-
ant $ANT_PROPERTIES drop.riftsaw.schema
-RIFTSAW_VERSION="2.0-SNAPSHOT"
-AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
-AS_CONFIG="default"
-
-echo build the RiftSaw and run integration tests
-echo AS_HOME=$AS_HOME, AS_CONIFG=$AS_CONFIG
-
+#build the RiftSaw and run integration tests
cd ../integration-tests
-mvn -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Ddatabase=$DATABASE
clean install
+mvn $ANT_PROPERTIES clean install
Modified: trunk/qa/hudson-riftsaw-jboss.sh
===================================================================
--- trunk/qa/hudson-riftsaw-jboss.sh 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/hudson-riftsaw-jboss.sh 2009-11-17 14:26:39 UTC (rev 274)
@@ -3,30 +3,29 @@
# Run Riftsaw Integration tests.
MAVEN_OPTS="-Xms512M -Xmx1024M"
+
RIFTSAW_PARENT_DIR="$WORKSPACE"
+
JBOSS_VERSION="5.1.0.GA"
-#DATABASE="hsql"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+AS_CONFIG="default"
+REPLACE_QA_JDBC="true"
-ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE"
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE
-Dreplace.qa.jdbc=$REPLACE_QA_JDBC -Dorg.jboss.as.home=$AS_HOME
-Dorg.jboss.as.config=$AS_CONFIG"
echo ANT_PROPERTIES=${ANT_PROPERTIES}
-# firstly build the Riftsaw and run unit tests
-echo build RiftSaw and running unit test
+# build RiftSaw and running unit test
cd ..
mvn clean install
# run integration test
-echo cleanup the RiftSaw HOME
cd qa
+ant $ANT_PROPERTIES stop-server
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
-RIFTSAW_VERSION="2.0-SNAPSHOT"
-AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
-AS_CONFIG="default"
+# build the RiftSaw and run integration tests
-echo build the RiftSaw and run integration tests
-echo AS_HOME=$AS_HOME, AS_CONIFG=$AS_CONFIG
-
cd ../integration-tests
-mvn -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Ddatabase=$DATABASE
clean install
+mvn $ANT_PROPERTIES clean install
Modified: trunk/qa/hudson-riftsaw-jdk5.sh
===================================================================
--- trunk/qa/hudson-riftsaw-jdk5.sh 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/hudson-riftsaw-jdk5.sh 2009-11-17 14:26:39 UTC (rev 274)
@@ -3,36 +3,31 @@
# Run Riftsaw Integration tests.
MAVEN_OPTS="-Xms512M -Xmx1024M"
+
RIFTSAW_PARENT_DIR="$WORKSPACE"
JBOSS_VERSION="5.1.0.GA"
DATABASE="hsql"
JBOSS_FILENAME="jboss-$JBOSS_VERSION.zip"
+REPLACE_QA_JDBC="true"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+AS_CONFIG="default"
+WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
-ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE
-Djboss.filename=$JBOSS_FILENAME"
+
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE
-Djboss.filename=$JBOSS_FILENAME -Dreplace.qa.jdbc=$REPLACE_QA_JDBC
-Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG
-Dws.stack.dir=$WS_STACK_DIR"
echo ANT_PROPERTIES=${ANT_PROPERTIES}
-# firstly build the Riftsaw and run unit tests
-echo build RiftSaw and running unit test
+# build RiftSaw and running unit test
cd ..
mvn clean install
# run integration test
-echo cleanup the RiftSaw HOME
cd qa
+ant $ANT_PROPERTIES stop-server
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
-# clean up the database (no need for hsql)
-echo clean up the database
-#ant $ANT_PROPERTIES drop.riftsaw.schema
-
-RIFTSAW_VERSION="2.0-SNAPSHOT"
-AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
-AS_CONFIG="default"
-WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
-
-echo build the RiftSaw and run integration tests
-echo AS_HOME=$AS_HOME, AS_CONIFG=$AS_CONFIG WS_STACK_DIR=$WS_STACK_DIR
WS_STACK=$WS_STACK
-
+#build the RiftSaw and run integration tests
cd ../integration-tests
-mvn -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Ddatabase=$DATABASE
-Dws.stack.dir=$WS_STACK_DIR clean install
+mvn $ANT_PROPERTIES clean install
Modified: trunk/qa/hudson-riftsaw-ws.sh
===================================================================
--- trunk/qa/hudson-riftsaw-ws.sh 2009-11-17 12:39:05 UTC (rev 273)
+++ trunk/qa/hudson-riftsaw-ws.sh 2009-11-17 14:26:39 UTC (rev 274)
@@ -6,32 +6,25 @@
RIFTSAW_PARENT_DIR="$WORKSPACE"
JBOSS_VERSION="5.1.0.GA"
DATABASE="hsql"
+RIFTSAW_VERSION="2.0-SNAPSHOT"
+AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
+AS_CONFIG="default"
+WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
+REPLACE_QA_JDBC="true"
-ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE"
+ANT_PROPERTIES="-Driftsaw.parent.dir=$RIFTSAW_PARENT_DIR -Ddatabase=$DATABASE
-Dreplace.qa.jdbc=$REPLACE_QA_JDBC -Dorg.jboss.as.home=$AS_HOME
-Dorg.jboss.as.config=$AS_CONFIG -Dws.stack=$WS_STACK -Dws.stack.dir=$WS_STACK_DIR"
echo ANT_PROPERTIES=${ANT_PROPERTIES}
-# firstly build the Riftsaw and run unit tests
-echo build RiftSaw and running unit test
+#build RiftSaw and running unit test
cd ..
mvn clean install
# run integration test
-echo cleanup the RiftSaw HOME
cd qa
+ant $ANT_PROPERTIES stop-server
ant $ANT_PROPERTIES clean
ant $ANT_PROPERTIES install.jbossesb
-# clean up the database (no need for hsql)
-echo clean up the database
-#ant $ANT_PROPERTIES drop.riftsaw.schema
-
-RIFTSAW_VERSION="2.0-SNAPSHOT"
-AS_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
-AS_CONFIG="default"
-WS_STACK_DIR="$RIFTSAW_PARENT_DIR/downloads"
-
-echo build the RiftSaw and run integration tests
-echo AS_HOME=$AS_HOME, AS_CONIFG=$AS_CONFIG WS_STACK_DIR=$WS_STACK_DIR
WS_STACK=$WS_STACK
-
+# build the RiftSaw and run integration tests
cd ../integration-tests
-mvn -Dorg.jboss.as.home=$AS_HOME -Dorg.jboss.as.config=$AS_CONFIG -Ddatabase=$DATABASE
-Dws.stack=$WS_STACK -Dws.stack.dir=$WS_STACK_DIR clean install
+mvn $ANT_PROPERTIES clean install
Added: trunk/qa/jdbc/derby.properties
===================================================================
--- trunk/qa/jdbc/derby.properties (rev 0)
+++ trunk/qa/jdbc/derby.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:derby:${jboss.server.data.dir}${/}derby${/}BPELDB;create=true
+driver=org.apache.derby.jdbc.EmbeddedDriver
+username=sa
+password=
+dialect=org.hibernate.dialect.DerbyDialect
\ No newline at end of file
Added: trunk/qa/jdbc/hsql.properties
===================================================================
--- trunk/qa/jdbc/hsql.properties (rev 0)
+++ trunk/qa/jdbc/hsql.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:h2:${jboss.server.data.dir}${/}h2${/}BPELDB
+driver=org.h2.Driver
+username=sa
+password=
+dialect=org.hibernate.dialect.H2Dialect
Added: trunk/qa/jdbc/mysql.properties
===================================================================
--- trunk/qa/jdbc/mysql.properties (rev 0)
+++ trunk/qa/jdbc/mysql.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com:3306/riftsaw
+driver=com.mysql.jdbc.Driver
+username=riftsaw
+password=rsqapwd
+dialect=org.hibernate.dialect.MySQLInnoDBDialect
\ No newline at end of file
Added: trunk/qa/jdbc/oracle.properties
===================================================================
--- trunk/qa/jdbc/oracle.properties (rev 0)
+++ trunk/qa/jdbc/oracle.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:oracle:thin:@vmg05.mw.lab.eng.bos.redhat.com:1521:qaora10
+driver=oracle.jdbc.driver.OracleDriver
+username=riftsaw
+password=rsqapwd
+dialect=org.hibernate.dialect.Oracle9Dialect
\ No newline at end of file
Added: trunk/qa/jdbc/postgres.properties
===================================================================
--- trunk/qa/jdbc/postgres.properties (rev 0)
+++ trunk/qa/jdbc/postgres.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:postgresql://vmg01.mw.lab.eng.bos.redhat.com/riftsaw
+driver=org.postgresql.Driver
+username=riftsaw
+password=rsqapwd
+dialect=org.hibernate.dialect.PostgreSQLDialect
\ No newline at end of file
Added: trunk/qa/jdbc/sqlserver.properties
===================================================================
--- trunk/qa/jdbc/sqlserver.properties (rev 0)
+++ trunk/qa/jdbc/sqlserver.properties 2009-11-17 14:26:39 UTC (rev 274)
@@ -0,0 +1,5 @@
+connection.url=jdbc:jtds:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433/riftsaw
+driver=net.sourceforge.jtds.jdbc.Driver
+username=riftsaw
+password=rsqapwd
+dialect=org.hibernate.dialect.SQLServerDialect
\ No newline at end of file