o This wasn't working on FC1, so I used an intermediary to store the location of BIN_DIR and then used dirname a section time to trim the "/bin" from the M2_HOME path.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163127 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2004-09-21 00:45:35 +00:00
parent b95cfd63d1
commit 318f91c3f4
1 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,11 @@ if $cygwin; then
fi
if [ -z "$M2_HOME" ]; then
M2_HOME=`dirname $0/..`
#find the path of the bin directory
BIN_DIR=`dirname $0`
#use dirname once again to trim the /bin from the m2_home path
M2_HOME=`dirname $BIN_DIR`
fi
CLASSWORLDS_CONF="${M2_HOME}/bin/classworlds.conf"