mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
- Rename JNI class from InjectorNative to Injector in libinject.c - Add JNI header for cn.xiaozhou233.juiceagent.injector.Injector - Add inject-via-java-api example with HowToUse.txt and 如何使用.txt
29 lines
453 B
Batchfile
29 lines
453 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "SRC=target.java"
|
|
set "OUT=out"
|
|
set "JAR=..\target.jar"
|
|
|
|
if exist "%OUT%" rmdir /s /q "%OUT%"
|
|
if exist "%JAR%" del /q "%JAR%"
|
|
|
|
mkdir "%OUT%"
|
|
javac -encoding UTF-8 --release 8 -d "%OUT%" "%SRC%"
|
|
if errorlevel 1 goto :error
|
|
|
|
jar --create --file "%JAR%" --main-class target -C "%OUT%" .
|
|
if errorlevel 1 goto :error
|
|
|
|
rmdir /s /q "%OUT%"
|
|
|
|
echo Build succeeded: target.jar
|
|
goto :end
|
|
|
|
:error
|
|
echo Build failed.
|
|
exit /b 1
|
|
|
|
:end
|
|
endlocal
|