From 0a58e560b3f2ecd5f12446fc633805ea888cafdd Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 30 Apr 2013 17:05:30 +0100 Subject: [PATCH] Fix ordering snafu with container properties and shutdown --- spring-bootstrap-cli/src/main/scripts/spring | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/spring-bootstrap-cli/src/main/scripts/spring b/spring-bootstrap-cli/src/main/scripts/spring index 2b4095dee6..28120e8a56 100755 --- a/spring-bootstrap-cli/src/main/scripts/spring +++ b/spring-bootstrap-cli/src/main/scripts/spring @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x # OS specific support (must be 'true' or 'false'). cygwin=false; @@ -49,6 +49,7 @@ fi if [ "$SPRING_HOME" == "" ]; then SPRING_HOME=`cd "$(dirname $0)"/.. && pwd` fi +SPRING_HOME=`cd "${SPRING_HOME}" && pwd` SPRING_BIN=$(dirname $0) TARGETDIR=target/classes @@ -59,12 +60,16 @@ mkdir -p "${TARGETDIR%/}" CLASSPATH="${CLASSPATH}":"${SPRING_BIN}":"${TARGETDIR}" +if [ ! "${SPRING_BIN}" == "${SPRING_HOME}" ]; then + CLASSPATH="${CLASSPATH}":"${SPRING_HOME}"/classes +fi + for f in "${SPRING_HOME}"/lib/*.jar; do - CLASSPATH="${CLASSPATH}":$f + [ -f $f ] && CLASSPATH="${CLASSPATH}":$f done for f in "${SPRING_HOME}"/*.jar; do - CLASSPATH="${CLASSPATH}":$f + [ -f $f ] && CLASSPATH="${CLASSPATH}":$f done if $cygwin; then