forked from pf4j/pf4j-spring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-demo.sh
executable file
·31 lines (23 loc) · 748 Bytes
/
run-demo.sh
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
31
#!/bin/sh
#
# This script creates and run the pf4j-spring demo.
#
# create artifacts using maven
mvn clean package -DskipTests
# create demo-dist folder
rm -fr demo-dist
mkdir -p demo-dist/plugins
# copy artifacts to demo-dist folder
cp demo/app/target/pf4j-spring-demo-*.zip demo-dist/
cp demo/plugins/plugin1/target/pf4j-spring-demo-plugin1-*.zip demo-dist/plugins/
cp demo/plugins/plugin2/target/pf4j-spring-demo-plugin2-*.zip demo-dist/plugins/
cp demo/plugins/enabled.txt demo-dist/plugins/
cp demo/plugins/disabled.txt demo-dist/plugins/
cd demo-dist
# unzip app
jar xf pf4j-spring-demo-app-*.zip
rm pf4j-spring-demo-app-*.zip
# run demo
mv pf4j-spring-demo-app-*-SNAPSHOT.jar pf4j-spring-demo.jar
java -jar pf4j-spring-demo.jar
cd -