mirror of
https://github.com/apache/maven.git
synced 2025-02-21 01:15:42 +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
|
||||
|
||||
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
|
||||
|
||||
# traverses directory structure from process work directory to filesystem root
|
||||
|
@ -61,3 +61,6 @@ if not exist "%JAVACMD%" (
|
||||
goto error
|
||||
)
|
||||
|
||||
if "%JAVA_HOME%"=="" (
|
||||
echo Warning: JAVA_HOME environment variable is not set. >&2
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user