Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 78041 invoked from network); 15 Dec 2005 10:00:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Dec 2005 10:00:41 -0000 Received: (qmail 94982 invoked by uid 500); 15 Dec 2005 10:00:41 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 94812 invoked by uid 500); 15 Dec 2005 10:00:40 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 94801 invoked by uid 99); 15 Dec 2005 10:00:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2005 02:00:40 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,INFO_TLD X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.191.84.239] (HELO web36309.mail.mud.yahoo.com) (209.191.84.239) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 15 Dec 2005 02:00:37 -0800 Received: (qmail 94833 invoked by uid 60001); 15 Dec 2005 09:53:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qlB4X9OCobmmX07X4AiHSAAQyxBKKWiwprxGnGa2JvVA25w874QcWmg54I0/caXTtPtmLGwFza9flhONC+11oeUnOwhZXidIFaSChTl/wNmM1+Y/kDBLZ14lmE8/NQ7+F3gWJl69Mx/D8D4cKTd4YL2Osurqami7hKUjylkEMZE= ; Message-ID: <20051215095303.94831.qmail@web36309.mail.mud.yahoo.com> Received: from [67.188.161.246] by web36309.mail.mud.yahoo.com via HTTP; Thu, 15 Dec 2005 01:53:03 PST Date: Thu, 15 Dec 2005 01:53:03 -0800 (PST) From: Doug Johnson Subject: Re: 1.0.2 Build Error shell arguments not interpreted To: continuum-users@maven.apache.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1835208069-1134640383=:91844" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-1835208069-1134640383=:91844 Content-Type: multipart/alternative; boundary="0-1352944990-1134640383=:91844" --0-1352944990-1134640383=:91844 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Yes the script works from the command line. Attached is the build.sh script. I would appreciate it if you could take a look. Thanks --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping --0-1352944990-1134640383=:91844 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Yes the script works from the command line.  Attached is the build.sh script.  I would appreciate it if you could take a look.
 
Thanks
 
 
 
 


Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping --0-1352944990-1134640383=:91844-- --0-1835208069-1134640383=:91844 Content-Type: text/plain; name="build.sh" Content-Description: 3055774830-build.sh Content-Disposition: inline; filename="build.sh" #!/bin/bash # setup up environment #. setEnv.sh $@ if [ "${1}0" != "0" ]; then if [ -f env.${1} ]; then echo "Using environment defined in env.${1}" . env.${1} else echo "Using default shell environment" fi fi if [ -d ../../share ]; then if [ -d ../share ]; then echo "remove old share directory ..." rm -rf ../share fi mkdir ../share echo "copy shared ivy configuration files ..." cp -rf ../../share/build ../share find ../share \( -name CVS -a -type d \) -exec rm -rf {} \; >& /dev/null fi unset CYGWIN case "`uname`" in CYGWIN*) CYGWIN=true printf "using CYGWIN \n" ;; esac # LD_LIBRARY_PATH stuff if [ ! $CYGWIN ]; then if [ "${WL_HOME}0" = "0" ]; then printf "WL_HOME not defined, using default: /opt/app/weblogic\n" export WL_HOME=/opt/app/weblogic fi if [ "${ORACLE_HOME}0" = "0" ]; then printf "ORACLE_HOME not defined, using default: /opt/app/oracle/product/8.1.7\n" export ORACLE_HOME=/opt/app/oracle/product/8.1.7 else if [ -f "$ORACLE_HOME/lib/libocijdbc8.so" ] ; then # printf "using ORACLE 8 client \n" OCI=oci817_8 elif [ -f "$ORACLE_HOME/lib/libocijdbc9.so" ] ; then # printf "using ORACLE 9 client \n" OCI=oci920_8 else printf "Not able to determine ORACLE client version. assuming 8\n" OCI=oci817_8 fi fi case "`uname`" in LINUX|Linux) printf "using LINUX. good! \n" export LD_LIBRARY_PATH=$WL_HOME/server/lib/linux/i686:$WL_HOME/server/lib/linux/i686/$OCI:$ORACLE_HOME/lib # export LD_ASSUME_KERNEL=2.2.5 ;; SunOS) export LD_LIBRARY_PATH=$WL_HOME/server/lib/solaris:$WL_HOME/server/lib/solaris/oci920_8:$ORACLE_HOME/lib ;; esac fi unset BUILD_PROPERTIES # check java_home environment if [ "${JAVA_HOME}0" = "0" ]; then printf "JAVA_HOME not defined, using `which java`\n" JAVA_CMD=java else JAVA_CMD=$JAVA_HOME/bin/java fi printf "using ";`$JAVA_CMD -version` if [ "${1}0" != "0" ]; then if [ -f build.properties.${1} ]; then echo "Using build properties file build.properties.${1}" BUILD_PROPERTIES=build.properties.${1} else echo "A build property file with extension ${1} does not exist" echo "Usage: build.sh env_extension [target]"; echo "The available property files are:" for i in build.properties.*; do echo $i; done exit 1 fi else echo "A build property file extension must be specified" echo "Usage: build.sh [env_extension]"; echo "The available property files are:" for i in build.properties.*; do echo $i; done exit 1 fi if [ ! -f $BUILD_PROPERTIES ]; then echo "$BUILD_PROPERTIES does not exist" exit 1 fi SHAREDLIB_DIR=../share/build/bootstrap for jar in $SHAREDLIB_DIR/*.jar do CP="$CP":$jar done if [ $CYGWIN ]; then JHOME=`cygpath --path --unix $JAVA_HOME` else JHOME=$JAVA_HOME fi CP="$CP":$JHOME/lib/tools.jar:../config/properties #:$SHAREDLIB_DIR/virgin-commons.jar if [ $CYGWIN ]; then CP=`cygpath --path --windows "$CP"` fi # remove env file suffix arg from arg list shift ARGS=$@ echo ARGS = [$@] #echo CP = [$CP] echo LD_LIBRARY_PATH = [$LD_LIBRARY_PATH] #echo LD_ASSUME_KERNEL = [$LD_ASSUME_KERNEL] JAVA_OPTIONS=-Dvmu.app.version=`echo "$Name: $" | cut -d' ' -f2` echo "app version: "$JAVA_OPTIONS $JAVA_CMD -Xms128m -Xmx512m -classpath "$CP" $JAVA_OPTIONS -Dlog4j.configuration=log4j.properties.info -Dglobal.build.properties.file=$BUILD_PROPERTIES org.apache.tools.ant.Main $ARGS --0-1835208069-1134640383=:91844--