summaryrefslogtreecommitdiffstats
path: root/run-demo.bat
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.bat
parentfd3942b69d6239fa3dfe80b1972a371b478fec03 (diff)
downloadpf4j-58fbfcc5f62ad40287eb892e2a8abd0c6e6cebc8.tar.gz
pf4j-58fbfcc5f62ad40287eb892e2a8abd0c6e6cebc8.zip
Improve run-demo scripts
Diffstat (limited to 'run-demo.bat')
-rw-r--r--run-demo.bat12
1 files changed, 7 insertions, 5 deletions
diff --git a/run-demo.bat b/run-demo.bat
index 1ef086b..6622d90 100644
--- a/run-demo.bat
+++ b/run-demo.bat
@@ -12,17 +12,19 @@ mkdir demo-dist\plugins
REM copy artifacts to demo-dist folder
xcopy demo\app\target\pf4j-demo-app-*.zip demo-dist /s /i
-xcopy demo\plugins\plugin1\target\*plugin.jar demo-dist\plugins /s
-xcopy demo\plugins\plugin2\target\*plugin.jar demo-dist\plugins /s
+xcopy demo\plugins\plugin1\target\pf4j-demo-plugin1-*-all.jar demo-dist\plugins /s
+xcopy demo\plugins\plugin2\target\pf4j-demo-plugin2-*-all.jar 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
-unzip pf4j-demo-app-*.zip
-rm pf4j-demo-app-*.zip
+jar xf pf4j-demo-app-*.zip
+del pf4j-demo-app-*.zip
REM run demo
-java -jar pf4j-demo-app-*-SNAPSHOT.jar
+rename pf4j-demo-app-*-SNAPSHOT.jar pf4j-demo.jar
+java -jar pf4j-demo.jar
+
cd ..