-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6a9f3d
commit 720c68f
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@echo off | ||
REM Check if the parameter is provided | ||
if "%1"=="" ( | ||
echo Error: No parameter provided. | ||
echo Usage: run.bat [build|deploy] | ||
exit /b 1 | ||
) | ||
|
||
REM Run applySpotless | ||
echo Running gradlew.bat spotlessApply... | ||
call gradlew.bat spotlessApply | ||
|
||
REM Check the provided parameter and run the corresponding command | ||
if "%1"=="build" ( | ||
echo Running gradlew.bat build... | ||
call gradlew.bat build | ||
) else if "%1"=="deploy" ( | ||
echo Running gradlew.bat deploy... | ||
call gradlew.bat deploy | ||
) else ( | ||
echo Error: Invalid parameter "%1" provided. | ||
echo Usage: run.bat [build|deploy] | ||
exit /b 1 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters