mirror of
https://github.com/apache/maven.git
synced 2025-02-21 17:40:48 +00:00
Warn also on Windows when JAVA_HOME isn't set
This commit is contained in:
parent
f7a775b79a
commit
a2ab329edc
@ -57,7 +57,7 @@ if [ ! -x "$JAVACMD" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$JAVA_HOME" ] ; then
|
if [ -z "$JAVA_HOME" ] ; then
|
||||||
echo "Warning: JAVA_HOME environment variable is not set."
|
echo "Warning: JAVA_HOME environment variable is not set." >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# traverses directory structure from process work directory to filesystem root
|
# traverses directory structure from process work directory to filesystem root
|
||||||
|
@ -61,3 +61,6 @@ if not exist "%JAVACMD%" (
|
|||||||
goto error
|
goto error
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if "%JAVA_HOME%"=="" (
|
||||||
|
echo Warning: JAVA_HOME environment variable is not set. >&2
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user