forked from pf4j/pf4j-spring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-demo.bat
30 lines (23 loc) · 814 Bytes
/
run-demo.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
REM
REM This script creates and run the pf4j-spring demo.
REM
REM create artifacts using maven
call mvn clean package -DskipTests
REM create demo-dist folder
rmdir demo-dist /s /q
mkdir demo-dist
mkdir demo-dist\plugins
REM copy artifacts to demo-dist folder
xcopy demo\app\target\pf4j-spring-demo-app-*.zip demo-dist /s /i
xcopy demo\plugins\plugin1\target\pf4j-spring-demo-plugin1-*.zip demo-dist\plugins /s
xcopy demo\plugins\plugin2\target\pf4j-spring-demo-plugin2-*.zip demo-dist\plugins /s
xcopy demo\plugins\enabled.txt demo-dist\plugins /s
xcopy demo\plugins\disabled.txt demo-dist\plugins /s
cd demo-dist
REM unzip app
jar xf pf4j-spring-demo-app-*.zip
del pf4j-spring-demo-app-*.zip
REM run demo
rename pf4j-spring-demo-app-*-SNAPSHOT.jar pf4j-spring-demo.jar
java -jar pf4j-spring-demo.jar
cd ..