aboutsummaryrefslogtreecommitdiffstats
path: root/run-demo.bat
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2013-05-17 11:23:41 +0300
committerDecebal Suiu <decebal.suiu@gmail.com>2013-05-17 11:23:41 +0300
commita8c2c6b948fa3f7a0c14c14714851c55939c74c8 (patch)
tree30e3242d1d4197bfe36896e3681dc02425b860d9 /run-demo.bat
parent7e1b5d6dfacce7ae1eb1a8eb4779369b62922d9f (diff)
downloadpf4j-a8c2c6b948fa3f7a0c14c14714851c55939c74c8.tar.gz
pf4j-a8c2c6b948fa3f7a0c14c14714851c55939c74c8.zip
added run-demo.bat
Diffstat (limited to 'run-demo.bat')
-rw-r--r--run-demo.bat26
1 files changed, 26 insertions, 0 deletions
diff --git a/run-demo.bat b/run-demo.bat
new file mode 100644
index 0000000..05c53df
--- /dev/null
+++ b/run-demo.bat
@@ -0,0 +1,26 @@
+REM
+REM This script creates and run the pf4j demo.
+REM
+
+REM create artifacts using maven
+call mvn clean package
+
+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-demo-app-*.zip demo-dist /s /i
+xcopy demo\plugin1\target\pf4j-demo-plugin1-*.zip demo-dist\plugins /s
+xcopy demo\plugin2\target\pf4j-demo-plugin2-*.zip demo-dist\plugins /s
+
+cd demo-dist
+
+REM unzip app
+unzip pf4j-demo-app-*.zip
+rm pf4j-demo-app-*.zip
+
+REM run demo
+java -jar pf4j-demo-app-*-SNAPSHOT.jar
+cd ..