Author: chris.laprun(a)jboss.com
Date: 2010-06-28 04:36:04 -0400 (Mon, 28 Jun 2010)
New Revision: 3501
Modified:
components/wsrp/trunk/UpdateWSRPForGateIn.sh
Log:
- Improved script to allow skipping of tests by passing only one argument. Passing more
than one argument results in the previous behavior for passing one argument: deploying
without building.
Modified: components/wsrp/trunk/UpdateWSRPForGateIn.sh
===================================================================
--- components/wsrp/trunk/UpdateWSRPForGateIn.sh 2010-06-28 08:23:34 UTC (rev 3500)
+++ components/wsrp/trunk/UpdateWSRPForGateIn.sh 2010-06-28 08:36:04 UTC (rev 3501)
@@ -50,10 +50,18 @@
echo Current WSRP version in project POM: \'$CURRENT_WSRP\'
echo
-# If we have no argument, build. If you don't want to build just add an argument
(value irrelevant) when calling the script
+# If we have no argument, build and test.
+# If we have one argument (irrelevant value), build but skip tests
+# If we have more than one argument (irrelevant values), only deploy the files without
build
if [ $# -eq 0 ]
then
mvn clean install
+else
+ if [ $# -eq 1 ]
+ then
+ echo Skipping tests!
+ mvn clean install '-Dmaven.test.skip=true'
+ fi
fi
# get the list of jar files we need to replace in lib
Show replies by date