summaryrefslogtreecommitdiffstats
path: root/run-demo.sh
diff options
context:
space:
mode:
authordecebals <decebal.suiu@gmail.com>2019-02-19 02:28:16 +0200
committerdecebals <decebal.suiu@gmail.com>2019-02-19 02:28:16 +0200
commit58fbfcc5f62ad40287eb892e2a8abd0c6e6cebc8 (patch)
tree604024a77d529fe4789d24828d2436186316af3e /run-demo.sh
parentfd3942b69d6239fa3dfe80b1972a371b478fec03 (diff)
downloadpf4j-58fbfcc5f62ad40287eb892e2a8abd0c6e6cebc8.tar.gz
pf4j-58fbfcc5f62ad40287eb892e2a8abd0c6e6cebc8.zip
Improve run-demo scripts
Diffstat (limited to 'run-demo.sh')
-rwxr-xr-xrun-demo.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/run-demo.sh b/run-demo.sh
index 01e6073..96ba799 100755
--- a/run-demo.sh
+++ b/run-demo.sh
@@ -12,12 +12,20 @@ rm -fr demo-dist
mkdir -p demo-dist/plugins
# copy artifacts to demo-dist folder
-cp -r demo/app/target/pf4j-demo-*/* demo-dist/
-cp demo/plugins/*/target/*plugin.jar demo-dist/plugins/
+cp demo/app/target/pf4j-demo-*.zip demo-dist/
+cp demo/plugins/plugin1/target/pf4j-demo-plugin1-*-all.jar demo-dist/plugins/
+cp demo/plugins/plugin2/target/pf4j-demo-plugin2-*-all.jar demo-dist/plugins/
cp demo/plugins/enabled.txt demo-dist/plugins/
cp demo/plugins/disabled.txt demo-dist/plugins/
-# run demo
cd demo-dist
-java -jar pf4j-demo-app-*-SNAPSHOT.jar
+
+# unzip app
+jar xf pf4j-demo-app-*.zip
+rm pf4j-demo-app-*.zip
+
+# run demo
+mv pf4j-demo-app-*-SNAPSHOT.jar pf4j-demo.jar
+java -jar pf4j-demo.jar
+
cd -