Browse Source

don't rely on deltree command - prevent any build failures on CI where that command is not present

master
Jaikiran Pai 3 years ago
parent
commit
6d71acb4d9
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      bootstrap.bat

+ 4
- 8
bootstrap.bat View File

@@ -34,10 +34,8 @@ if "" == "%JAVAC%" set JAVAC=%JAVA_HOME%\bin\javac
echo. echo.
echo ... Bootstrapping Ant Distribution echo ... Bootstrapping Ant Distribution


if "%OS%" == "Windows_NT" if exist bootstrap\nul rmdir/s/q bootstrap
if not "%OS%" == "Windows_NT" if exist bootstrap\nul deltree/y bootstrap
if "%OS%" == "Windows_NT" if exist build\nul rmdir/s/q build
if not "%OS%" == "Windows_NT" if exist build\nul deltree/y build
if exist bootstrap\nul rmdir/s/q bootstrap
if exist build\nul rmdir/s/q build


SET LOCALCLASSPATH= SET LOCALCLASSPATH=
for %%i in (lib\optional\*.jar) do call src\script\lcp.bat %%i for %%i in (lib\optional\*.jar) do call src\script\lcp.bat %%i
@@ -55,8 +53,7 @@ echo JAVAC=%JAVAC%
echo CLASSPATH=%CLASSPATH% echo CLASSPATH=%CLASSPATH%
echo ANT_HOME=%ANT_HOME% echo ANT_HOME=%ANT_HOME%


if "%OS%" == "Windows_NT" if exist %CLASSDIR%\nul rmdir/s/q %CLASSDIR%
if not "%OS%" == "Windows_NT" if exist %CLASSDIR%\nul deltree/y %CLASSDIR%
if exist %CLASSDIR%\nul rmdir/s/q %CLASSDIR%


if not exist build\nul mkdir build if not exist build\nul mkdir build
if not exist build\classes\nul mkdir build\classes if not exist build\classes\nul mkdir build\classes
@@ -131,8 +128,7 @@ if not "%OS%"=="Windows_NT" goto mainEnd
echo. echo.
echo ... Cleaning Up Build Directories echo ... Cleaning Up Build Directories


if "%OS%" == "Windows_NT" if exist %CLASSDIR%\nul rmdir/s/q %CLASSDIR%
if not "%OS%" == "Windows_NT" if exist %CLASSDIR%\nul deltree/y %CLASSDIR%
if exist %CLASSDIR%\nul rmdir/s/q %CLASSDIR%


echo. echo.
echo ... Done Bootstrapping Ant Distribution echo ... Done Bootstrapping Ant Distribution


Loading…
Cancel
Save