Author: nickboldt
Date: 2011-01-12 15:55:06 -0500 (Wed, 12 Jan 2011)
New Revision: 28156
Modified:
trunk/drools/build.sh
Log:
must be able to reuse drools/pom.xml file
Modified: trunk/drools/build.sh
===================================================================
--- trunk/drools/build.sh 2011-01-12 20:48:51 UTC (rev 28155)
+++ trunk/drools/build.sh 2011-01-12 20:55:06 UTC (rev 28156)
@@ -12,9 +12,12 @@
mkdir sources; cd sources
-if [[ ! -d drools-eclipse # fetch drools-eclipse sources into child folder,
"drools"
-svn co
https://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-eclipse drools
+# fetch drools-eclipse sources into child folder, "drools"
+if [[ ! -d drools ]]; then svn co
https://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-eclipse drools; fi
+# store pom.xml from trunk/drools/ for later use (running tests)
+mv pom.xml pom_drools.xml
+
# fetch Drools' parent pom into root folder, "sources"
rm -fr pom.xml; wget
https://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/pom.xml
@@ -46,3 +49,6 @@
# build w/ maven using JBT parent pom (will pass - all deps available now)
mvn3 -B -fae clean install -f drools/pom.xml
-Dmaven.repo.local=${WORKSPACE}/m2-repository
+# recover pom.xml from trunk/drools/ for running tests
+mv pom_drools.xml pom.xml
+