git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271290 13f79535-47bb-0310-9956-ffa450edef68master
@@ -28,12 +28,7 @@ done | |||||
ANT_HOME=`dirname "$PRG"`/.. | ANT_HOME=`dirname "$PRG"`/.. | ||||
if [ "$JAVA_HOME" == "" ] ; then | if [ "$JAVA_HOME" == "" ] ; then | ||||
echo "Warning: JAVA_HOME environment variable is not set." | |||||
echo " If build fails because sun.* classes could not be found" | |||||
echo " you will need to set the JAVA_HOME environment variable" | |||||
echo " to the installation directory of java." | |||||
if [ "$JAVACMD" = "" ] ; then | |||||
if [ "$JAVACMD" = "" ] ; then | |||||
JAVACMD=java | JAVACMD=java | ||||
fi | fi | ||||
else | else | ||||
@@ -28,13 +28,6 @@ goto end | |||||
if not "%JAVA_HOME%" == "" goto javaCmdSetup | if not "%JAVA_HOME%" == "" goto javaCmdSetup | ||||
echo. | |||||
echo Warning: JAVA_HOME environment variable is not set. | |||||
echo If build fails because sun.* classes could not be found | |||||
echo you will need to set the JAVA_HOME environment variable | |||||
echo to the installation directory of java. | |||||
echo. | |||||
rem hope that there is java command in path | rem hope that there is java command in path | ||||
if "%JAVACMD%" == "" set JAVACMD=java | if "%JAVACMD%" == "" set JAVACMD=java | ||||
goto argSetup | goto argSetup | ||||