mirror of https://github.com/apache/maven.git
PR: MNG-2341. Merge from 2.0.x branch revision 470421
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@470423 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dbfc2db51b
commit
27598febd0
|
@ -18,6 +18,22 @@
|
||||||
# Copyright (c) 2001-2002 The Apache Software Foundation. All rights
|
# Copyright (c) 2001-2002 The Apache Software Foundation. All rights
|
||||||
# reserved.
|
# reserved.
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
# Maven2 Start Up Batch script
|
||||||
|
#
|
||||||
|
# Required ENV vars:
|
||||||
|
# ------------------
|
||||||
|
# JAVA_HOME - location of a JDK home dir
|
||||||
|
#
|
||||||
|
# Optional ENV vars
|
||||||
|
# -----------------
|
||||||
|
# M2_HOME - location of maven2's installed home dir
|
||||||
|
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||||
|
# e.g. to debug Maven itself, use
|
||||||
|
# set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||||
|
# ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
QUOTED_ARGS=""
|
QUOTED_ARGS=""
|
||||||
while [ "$1" != "" ] ; do
|
while [ "$1" != "" ] ; do
|
||||||
|
|
||||||
|
@ -60,15 +76,6 @@ if [ -z "$JAVA_HOME" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$M2_HOME" ] ; then
|
if [ -z "$M2_HOME" ] ; then
|
||||||
# try to find MAVEN
|
|
||||||
if [ -d /opt/m2 ] ; then
|
|
||||||
MAVEN_HOME=/opt/m2
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "$HOME/m2" ] ; then
|
|
||||||
MAVEN_HOME="$HOME/m2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
## resolve links - $0 may be a link to maven's home
|
## resolve links - $0 may be a link to maven's home
|
||||||
PRG="$0"
|
PRG="$0"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue