Browse Source

Stopped the script from blowing away the JAVA_HOME/JAVA/JAVAC/CLASSPATH values.

Without this fix it didn't work on my NT JDK 1.3b system.  I've tested the
current script on JDK 1.3b and JDK 1.2 and it now respects JAVA_HOME.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267634 13f79535-47bb-0310-9956-ffa450edef68
master
Jason Hunter 25 years ago
parent
commit
c7806a87fe
1 changed files with 10 additions and 7 deletions
  1. +10
    -7
      bootstrap.bat

+ 10
- 7
bootstrap.bat View File

@@ -2,9 +2,9 @@


REM You will need to specify JAVA_HOME if compiling with 1.2 or later. REM You will need to specify JAVA_HOME if compiling with 1.2 or later.


set JAVA_HOME=
set JAVA=
set JAVAC=
set OLDJAVA=%JAVA%
set OLDJAVAC=%JAVAC%
set OLDCLASSPATH=%CLASSPATH%


if exist ..\antrc.bat call ..\antrc.bat if exist ..\antrc.bat call ..\antrc.bat


@@ -58,8 +58,11 @@ if not "%OS%" == "Windows_NT" if exist classes\nul deltree/y classes
echo. echo.
echo ... Done Bootstrapping Ant Distribution echo ... Done Bootstrapping Ant Distribution


set JAVA_HOME=
set JAVA=
set JAVAC=
set CLASSPATH=
set JAVA=%OLDJAVA%
set JAVAC=%OLDJAVAC%
set CLASSPATH=%OLDCLASSPATH%
set OLDJAVA=
set OLDJAVAC=
set OLDCLASSPATH=
set TOOLS= set TOOLS=


Loading…
Cancel
Save