From continuum-users-return-687-apmail-maven-continuum-users-archive=maven.apache.org@maven.apache.org Thu Dec 15 20:35:05 2005 Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 95474 invoked from network); 15 Dec 2005 20:35:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Dec 2005 20:35:05 -0000 Received: (qmail 81772 invoked by uid 500); 15 Dec 2005 20:35:05 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 81607 invoked by uid 500); 15 Dec 2005 20:35:04 -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 81594 invoked by uid 99); 15 Dec 2005 20:35:04 -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 12:35:04 -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.245] (HELO web36315.mail.mud.yahoo.com) (209.191.84.245) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 15 Dec 2005 12:35:01 -0800 Received: (qmail 8776 invoked by uid 60001); 15 Dec 2005 20:34:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=R/yPqR5JdKTjhgpdg2wW6eBmqrHd8DjthLXg0bm+fM/8wxSodv2nvqs2VXByrUt52MakTIjVwTMYh+CP+Zxywgs9bLVE3EQCdtNA41BReX33HAVFWd0dhpJqxKagJSyaq58KIcofsUimVkBClnqMeOG9GPlhuNoM4uH73t/mp7U= ; Message-ID: <20051215203439.8774.qmail@web36315.mail.mud.yahoo.com> Received: from [205.239.225.78] by web36315.mail.mud.yahoo.com via HTTP; Thu, 15 Dec 2005 12:34:39 PST Date: Thu, 15 Dec 2005 12:34:39 -0800 (PST) From: Doug Johnson Subject: Re: 1.0.2 Build Error shell arguments not interpreted To: continuum-users@maven.apache.org In-Reply-To: <43A14503.8000900@venisse.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1479516146-1134678879=:4736" 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-1479516146-1134678879=:4736 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Emmanuel, No I don't have that file in my working directory. When i moved it to the recommended directory it does not fail on the build properties but fails to run "ant". The following files are under version control and are all located in the directory below. All paths for build.sh, and setEnv.sh are relateive to this directory. Is there another way to define a working directory that is not tied to where you checkout your module to? Thanks for your time! /export/home/cruise/workspace/working-directory/6/vmu/build - build.properties.cruise - setEnv.sh - build.sh **************************************************************************** Output: **************************************************************************** + '[' cruise0 '!=' 0 ']' + '[' -f env.cruise ']' + echo 'Using default shell environment' Using default shell environment + '[' -d ../../share ']' + unset CYGWIN ++ uname + '[' '!' ']' + '[' /export/home/cruise/bea/weblogic810 = 0 ']' + '[' /export/home/cruise/oracle/OraHome10 = 0 ']' + '[' -f /export/home/cruise/oracle/OraHome1/lib/libocijdbc8.so ']' '[' + -f /export/home/cruise/oracle/OraHome1/lib/libocijdbc9.so ']' + OCI=oci920_8 ++ uname + printf 'using LINUX. good! \n' + export + LD_LIBRARY_PATH=/export/home/cruise/bea/weblogic81/server/lib/linux/i686:/export/home/cruise/bea/weblogic81/server/lib/linux/i686/oci920_8:/export/home/cruise/oracle/OraHome1/lib + LD_LIBRARY_PATH=/export/home/cruise/bea/weblogic81/server/lib/linux/i686:/export/home/cruise/bea/weblogic81/server/lib/linux/i686/oci920_8:/export/home/cruise/oracle/OraHome1/lib using LINUX. good! + unset BUILD_PROPERTIES + '[' /export/home/cruise/bea/jdk142_050 = 0 ']' + JAVA_CMD=/export/home/cruise/bea/jdk142_05/bin/java + printf 'using ' ++ /export/home/cruise/bea/jdk142_05/bin/java -version java version "1.4.2_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) + '[' cruise0 '!=' 0 ']' + '[' -f build.properties.cruise ']' + echo 'Using build properties file build.properties.cruise' + BUILD_PROPERTIES=build.properties.cruise using Using build properties file build.properties.cruise + '[' '!' -f build.properties.cruise ']' + SHAREDLIB_DIR=../share/build/bootstrap + CP=:../share/build/bootstrap/*.jar + '[' ']' + JHOME=/export/home/cruise/bea/jdk142_05 + CP=:../share/build/bootstrap/*.jar:/export/home/cruise/bea/jdk142_05/l + ib/tools.jar:../config/properties + '[' ']' + shift + ARGS=clean package_web_ear + echo ARGS = '[clean' 'package_web_ear]' ARGS = [clean package_web_ear] + echo LD_LIBRARY_PATH = + '[/export/home/cruise/bea/weblogic81/server/lib/linux/i686:/export/home/cruise/bea/weblogic81/server/lib/linux/i686/oci920_8:/export/home/cruise/oracle/OraHome1/lib]' LD_LIBRARY_PATH = [/export/home/cruise/bea/weblogic81/server/lib/linux/i686:/export/home/cruise/bea/weblogic81/server/lib/linux/i686/oci920_8:/export/home/cruise/oracle/OraHome1/lib] ++ echo ': $' ++ cut '-d ' -f2 + JAVA_OPTIONS=-Dvmu.app.version= + echo 'app version: -Dvmu.app.version=' app version: -Dvmu.app.version= + /export/home/cruise/bea/jdk142_05/bin/java -Xms128m -Xmx512m + -classpath ':../share/build/bootstrap/*.jar:/export/home/cruise/bea/jdk142_05/lib/tools.jar:../config/properties' -Dvmu.app.version= -Dlog4j.configuration=log4j.properties.info -Dglobal.build.properties.file=build.properties.cruise org.apache.tools.ant.Main clean package_web_ear Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main Emmanuel Venisse wrote: do you have a build.properties.cruise file in your working directory (/export/home/cruise/workspace/working-directory/6)? Emmanuel Doug Johnson a écrit : > > The script runs from the command line. Attached is copy of the build.sh > scirpt i am running. It basically passes the "cruise" property file to > ant. Please take a look at the script. > > Thanks > > */Emmanuel Venisse /* wrote: > > It seems that it's a problem with your script. I don't know it, so i > can't help you. > > Are you sure this command works from command line in this working > directory > (/export/home/cruise/workspace/working-directory/6/vmu/build/build.sh > cruise clean package_web_ear)? > > Emmanuel > > Doug Johnson a écrit : > > 2387580 [Thread-1] WARN > org.apache.maven.continuum.execution.ContinuumBuildExecutor:shell - > Executable '/export/ho > > me/cruise/workspace/working-directory/6/vmu/build/build.sh'. > > 2387580 [Thread-1] INFO > org.apache.maven.continuum.execution.ContinuumBuildExecutor:shell - > Arguments: cruise clea > > n package_web_ear > > 2387580 [Thread-1] INFO > org.apache.maven.continuum.execution.ContinuumBuildExecutor:shell - > Working directory: /ex > > port/home/cruise/workspace/working-directory/6 > > 2387924 [Thread-1] INFO > org.apache.maven.continuum.execution.ContinuumBuildExecutor:shell - > Exit code: 1 > > 2412021 [Thread-1] ERROR > org.codehaus.plexus.velocity.VelocityComponent - Left side of '>' > operation is not a valid > > type. It is a class java.lang.Long. Currently only integers > (1,2,3...) and Integer type is supported. /org/apache/ > > > maven/continuum/notification/mail/templates/shell/BuildComplete.vm > [line 25, column 27] > > > > Output: > > > **************************************************************************** > > Using default shell environment > > using LINUX. good! > > java version "1.4.2_05" > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) > > Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) > > using A build property file with extension cruise does not exist > > Usage: build.sh env_extension [target] > > The available property files are: > > build.properties.* > > > > > > > > --------------------------------- > > Yahoo! Shopping > > Find Great Deals on Holiday Gifts at Yahoo! Shopping > > > ------------------------------------------------------------------------ > Yahoo! Shopping > Find Great Deals on Holiday Gifts at Yahoo! Shopping > > > > > > ------------------------------------------------------------------------ > > #!/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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-1479516146-1134678879=:4736--