Author: jbalunas(a)redhat.com
Date: 2010-05-26 07:18:27 -0400 (Wed, 26 May 2010)
New Revision: 17251
Modified:
root/build/resources/trunk/clean_install.sh
Log:
Added skip-enforce option
Modified: root/build/resources/trunk/clean_install.sh
===================================================================
--- root/build/resources/trunk/clean_install.sh 2010-05-26 11:02:54 UTC (rev 17250)
+++ root/build/resources/trunk/clean_install.sh 2010-05-26 11:18:27 UTC (rev 17251)
@@ -18,6 +18,7 @@
-h Show this message
-d Root directory, otherwise the PWD is used
-x Use mvn -X option
+ -y Skip enforcement rules - this is needed if using cdk plugin snapshots
TODO Add options for skip test, skip check style etc...
EOF
@@ -30,6 +31,11 @@
then
MVNARGS="-X"
fi
+
+if [ "$SKIP_ENFORCE" -eq "1" ]
+then
+ MVNARGS="$MVNARGS -Dskip-enforce"
+fi
if [ -d "$DESTINATION" ]
then
@@ -87,6 +93,7 @@
DESTINATION=`pwd`
DEBUG=0
+SKIP_ENFORCE=0
MVNARGS=
WORK=1
INCL_CDK=0
@@ -154,7 +161,7 @@
# "ui-sandbox/tree-model"
)
-while getopts "tecsahd:x" OPTION
+while getopts "tecsahd:xy" OPTION
do
case $OPTION in
t)
@@ -185,6 +192,9 @@
x)
DEBUG=1
;;
+ y)
+ SKIP_ENFORCE=1
+ ;;
[?])
usage;
WORK=0
Show replies by date