ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hol...@apache.org
Subject cvs commit: jakarta-ant/src/script ant.bat
Date Sun, 31 Mar 2002 22:05:29 GMT
holtdl      02/03/31 14:05:29

  Modified:    src/script ant.bat
  Log:
  Add check for "%_JAVACMD%.exe" (PR 2484).
  
  Revision  Changes    Path
  1.17      +1 -0      jakarta-ant/src/script/ant.bat
  
  Index: ant.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/script/ant.bat,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ant.bat	10 Jan 2002 14:18:42 -0000	1.16
  +++ ant.bat	31 Mar 2002 22:05:29 -0000	1.17
  @@ -76,6 +76,7 @@
   
   if "%JAVA_HOME%" == "" goto noJavaHome
   if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java
  +if not exist "%_JAVACMD%.exe" echo Error: "%_JAVACMD%.exe" not found - check JAVA_HOME
&& goto end
   if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\tools.jar
   if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\classes.zip
   goto checkJikes
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message