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 <[EMAIL PROTECTED]> 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 = [EMAIL PROTECTED]

#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

Reply via email to