From: Decebal Suiu Date: Thu, 16 May 2013 22:20:44 +0000 (+0300) Subject: added run-demo.bat X-Git-Tag: release-0.7.0~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f93ef728d640c0ed98a0ccceabd2d214f599a121;p=pf4j.git added run-demo.bat --- diff --git a/demo/app/src/main/assembly/assembly.xml b/demo/app/src/main/assembly/assembly.xml index 1d9e8e4..ef8515d 100644 --- a/demo/app/src/main/assembly/assembly.xml +++ b/demo/app/src/main/assembly/assembly.xml @@ -5,9 +5,10 @@ @version 1.0 --> - plugin + app dir + zip false @@ -26,6 +27,10 @@ *.jar + + *-javadoc.jar + *-sources.jar + 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 ..