Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 3947 invoked from network); 23 Nov 2007 02:29:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Nov 2007 02:29:22 -0000 Received: (qmail 27722 invoked by uid 500); 23 Nov 2007 02:29:10 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 27648 invoked by uid 500); 23 Nov 2007 02:29:10 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 27637 invoked by uid 99); 23 Nov 2007 02:29:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2007 18:29:10 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2007 02:29:12 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D6C5E1A9832; Thu, 22 Nov 2007 18:28:50 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r597524 - /cocoon/trunk/build.sh Date: Fri, 23 Nov 2007 02:28:50 -0000 To: cvs@cocoon.apache.org From: vgritsenko@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071123022850.D6C5E1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: vgritsenko Date: Thu Nov 22 18:28:49 2007 New Revision: 597524 URL: http://svn.apache.org/viewvc?rev=597524&view=rev Log: better build script Modified: cocoon/trunk/build.sh Modified: cocoon/trunk/build.sh URL: http://svn.apache.org/viewvc/cocoon/trunk/build.sh?rev=597524&r1=597523&r2=597524&view=diff ============================================================================== --- cocoon/trunk/build.sh (original) +++ cocoon/trunk/build.sh Thu Nov 22 18:28:49 2007 @@ -8,14 +8,31 @@ # Java compiler requires at least 128m of memory for cocoon-serializers block, # plus another 128m for maven itself to fit its dependency tree. MAVEN_OPTS="-Xmx256m" -export MAVEN_OPTS -# Unit tests debugging option -# -Dmaven.surefire.debug +# Parse command line +ARGS="" +while [ "$#" -gt "0" ] +do + case "$1" in + debug) + MAVEN_OPTS="-Dmaven.surefire.debug $MAVEN_OPTS" + ;; -# Unit test skip option -# -Dmaven.test.skip=true + notest | notests) + MAVEN_OPTS="-Dmaven.test.skip=true $MAVEN_OPTS" + ;; -# Invoke maven -mvn -P allblocks $* + build) + ARGS="$ARGS install" + ;; + + *) + ARGS="$ARGS $1" + esac + shift +done +export MAVEN_OPTS + +# Invoke maven +mvn -P allblocks $ARGS