-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-demo.bat
More file actions
23 lines (20 loc) · 830 Bytes
/
Copy pathrun-demo.bat
File metadata and controls
23 lines (20 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
chcp 65001 >nul
echo ⚡ Building FastFileScrape...
call mvn clean package -q -DskipTests
if %ERRORLEVEL% NEQ 0 ( echo ❌ Build failed. & pause & exit /b 1 )
echo 🔨 Compiling Demo...
if not exist "examples\Demo\target\classes" mkdir "examples\Demo\target\classes"
call javac -cp "target\FastFileScrape-0.1.0.jar" ^
-d "examples\Demo\target\classes" ^
"examples\Demo\src\main\java\fastfilescrape\Demo.java" 2>nul
if %ERRORLEVEL% NEQ 0 ( echo ❌ Demo compile failed. & pause & exit /b 1 )
echo 🚀 Running Demo...
echo.
java --enable-native-access=ALL-UNNAMED ^
-Dfile.encoding=UTF-8 ^
-Dstdout.encoding=UTF-8 ^
-cp "target\FastFileScrape-0.1.0.jar;examples\Demo\target\classes" ^
fastfilescrape.Demo
if %ERRORLEVEL% NEQ 0 ( echo. & echo ❌ Demo failed. & pause & exit /b 1 )
pause