Author: tucu
Date: Tue Oct  2 00:11:00 2012
New Revision: 1392697

URL: http://svn.apache.org/viewvc?rev=1392697&view=rev
Log:
Fixing test-patch rat task (tucu)

Modified:
    oozie/trunk/bin/test-patch-08-rat

Modified: oozie/trunk/bin/test-patch-08-rat
URL: 
http://svn.apache.org/viewvc/oozie/trunk/bin/test-patch-08-rat?rev=1392697&r1=1392696&r2=1392697&view=diff
==============================================================================
--- oozie/trunk/bin/test-patch-08-rat (original)
+++ oozie/trunk/bin/test-patch-08-rat Tue Oct  2 00:11:00 2012
@@ -22,6 +22,7 @@ OP=""
 TEMPDIR=""
 REPORTDIR=""
 SUMMARYFILE=""
+STDOUT="/dev/null"
 MVNPASSTHRU=""
 
 ###############################################################################
@@ -54,6 +55,9 @@ parseArgs() {
     --summaryfile=*)
       SUMMARYFILE=${i#*=}
       ;;
+    --verbose)
+      STDOUT="/dev/stdout"
+      ;;
     -D*)
       MVNPASSTHRU="${MVNPASSTHRU} $i"
       ;;
@@ -98,10 +102,12 @@ parseArgs "$@"
 
 case $OP in
   pre)
-    mvn apache-rat:check ${MVNPASSTHRU} > ${REPORTDIR}/${TASKNAME}-clean.txt
+    mvn apache-rat:check ${MVNPASSTHRU} > $STDOUT
+    cp target/rat.txt ${REPORTDIR}/${TASKNAME}-clean.txt
     ;;
   post)
-    mvn apache-rat:check ${MVNPASSTHRU} > ${REPORTDIR}/${TASKNAME}-patch.txt
+    mvn apache-rat:check ${MVNPASSTHRU} > $STDOUT
+    cp target/rat.txt ${REPORTDIR}/${TASKNAME}-patch.txt
     ;;
   report)
     checkForWarnings


Reply via email to