You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by jd...@apache.org on 2004/09/21 02:45:35 UTC
cvs commit: maven-components/maven-core/src/bin m2
jdcasey 2004/09/20 17:45:35
Modified: maven-core/src/bin m2
Log:
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.
Revision Changes Path
1.3 +5 -1 maven-components/maven-core/src/bin/m2
Index: m2
===================================================================
RCS file: /home/cvs/maven-components/maven-core/src/bin/m2,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- m2 7 Sep 2004 13:41:11 -0000 1.2
+++ m2 21 Sep 2004 00:45:35 -0000 1.3
@@ -58,7 +58,11 @@
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"