mirror of https://github.com/apache/maven.git
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:
parent
b95cfd63d1
commit
318f91c3f4
|
@ -58,7 +58,11 @@ if $cygwin; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$M2_HOME" ]; then
|
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
|
fi
|
||||||
|
|
||||||
CLASSWORLDS_CONF="${M2_HOME}/bin/classworlds.conf"
|
CLASSWORLDS_CONF="${M2_HOME}/bin/classworlds.conf"
|
||||||
|
|
Loading…
Reference in New Issue