diff --git a/buildAll.bat b/buildAll.bat index 75578f376..cd0d93415 100644 --- a/buildAll.bat +++ b/buildAll.bat @@ -1,23 +1,15 @@ -@echo off +@echo off & setlocal enabledelayedexpansion -echo Windows build all script needs to be rewritten -echo I dont use Windows so I cant really make this -echo So if someone does use Windows and knows how to script stuff then can you please port the "buildall" script I made for Unix +@rem Loop trough everything in the version properties folder +for %%f in (versionProperties\*) do ( + @rem Get the name of the version that is going to be compiled + set version=%%~nf + @rem Clean out the folders and build it + echo Cleaning workspace to build !version! + call .\gradlew.bat clean -PmcVer="!version!" --no-daemon + echo Building !version! + call .\gradlew.bat build -PmcVer="!version!" --no-daemon +) - - -@REM Old BAT script if you need some help with this task - -@REM SETLOCAL -@REM CALL :buildVersion "1.18.2" -@REM CALL :buildVersion "1.19.4" -@REM CALL :buildVersion "1.20.1" -@REM EXIT /B %ERRORLEVEL% -@REM -@REM :buildVersion -@REM @echo on -@REM call ./gradlew.bat clean -PmcVer="%~1" --no-daemon -@REM call ./gradlew.bat build -PmcVer="%~1" --no-daemon -@REM @echo off -@REM EXIT /B 0 +endlocal