- 在构建前添加清理日志目录的步骤 - 删除独立的 run-jar.bat 脚本 - 删除独立的 run.bat 脚本
@@ -9,6 +9,14 @@ if %errorlevel% neq 0 (
exit /b 1
)
+echo Cleaning log directory...
+if exist logs (
+ rmdir /s /q logs
+ echo Log directory cleared.
+) else (
+ echo No log directory to clear.
+)
+
echo Cleaning project...
call mvn clean
@@ -1,12 +0,0 @@
-@echo off
-echo Running Chronic Disease App from JAR...
-
-REM Check if the JAR file exists
-if not exist "target\ChronicDiseaseApp-1.0-SNAPSHOT.jar" (
- echo Error: JAR file not found. Please build the project first using 'mvn package'.
- pause
- exit /b 1
-)
-echo Starting application...
-java -jar target\ChronicDiseaseApp-1.0-SNAPSHOT.jar
@@ -1,13 +0,0 @@
-echo Starting Chronic Disease App...
-REM Check if Maven is installed
-where mvn >nul 2>nul
-if %errorlevel% neq 0 (
- echo Error: Maven is not installed or not in PATH
-echo Running application with Maven...
-mvn spring-boot:run