mirror of https://github.com/pf4j/pf4j.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
789 B
30 lines
789 B
REM |
|
REM This script creates and run the pf4j demo. |
|
REM |
|
|
|
REM create artifacts using maven |
|
call mvn clean package -DskipTests |
|
|
|
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\maven\app\target\pf4j-demo-app-*.zip demo-dist /s /i |
|
xcopy demo\maven\plugins\plugin1\target\pf4j-demo-plugin1-*-all.jar demo-dist\plugins /s |
|
xcopy demo\maven\plugins\plugin2\target\pf4j-demo-plugin2-*-all.jar demo-dist\plugins /s |
|
xcopy demo\maven\plugins\enabled.txt demo-dist\plugins /s |
|
xcopy demo\maven\plugins\disabled.txt demo-dist\plugins /s |
|
|
|
cd demo-dist |
|
|
|
REM unzip app |
|
jar xf pf4j-demo-app-*.zip |
|
del pf4j-demo-app-*.zip |
|
|
|
REM run demo |
|
rename pf4j-demo-app-*-SNAPSHOT.jar pf4j-demo.jar |
|
java -jar pf4j-demo.jar |
|
|
|
cd ..
|
|
|