Author: jeff.yuchang
Date: 2009-10-30 06:23:19 -0400 (Fri, 30 Oct 2009)
New Revision: 218
Modified:
trunk/qa/build.xml
trunk/qa/hudson-riftsaw-db.sh
Log:
* update the script.
Modified: trunk/qa/build.xml
===================================================================
--- trunk/qa/build.xml 2009-10-30 06:40:19 UTC (rev 217)
+++ trunk/qa/build.xml 2009-10-30 10:23:19 UTC (rev 218)
@@ -104,5 +104,14 @@
<get src="${jbossesb.distro.url}"
dest="${jbossesb.distro.path}" />
</target>
-
+ <!-- ### Install and Cleanup DB
###################################################### -->
+ <target name="unpack-riftsaw">
+ <unzip dest="../distribution/target"
src="../distribution/target/riftsaw-${riftsaw.version}.zip"/>
+ </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" >
+ <property name="database" value="${database}" />
+ </ant>
+ </target>
</project>
Modified: trunk/qa/hudson-riftsaw-db.sh
===================================================================
--- trunk/qa/hudson-riftsaw-db.sh 2009-10-30 06:40:19 UTC (rev 217)
+++ trunk/qa/hudson-riftsaw-db.sh 2009-10-30 10:23:19 UTC (rev 218)
@@ -23,9 +23,9 @@
# clean up the database
echo clean up the database
-cd ../db
-ant drop.riftsaw.schema -Ddatabase=$DATABASE
+ant $ANT_PROPERTIES drop.riftsaw.schema
+
RIFTSAW_VERSION="2.0-SNAPSHOT"
ESB_HOME="$RIFTSAW_PARENT_DIR/riftsaw-$RIFTSAW_VERSION/jboss-$JBOSS_VERSION"
ESB_CONFIG="default"