no, you can't define the working directory. File an issue.

Emmanuel

Doug Johnson a écrit :
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 <[EMAIL PROTECTED]> 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 = [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



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Reply via email to