Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
REM | ||
REM This script creates and run the pf4j-spring 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\app\target\pf4j-spring-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 | ||
|
||
cd demo-dist | ||
|
||
REM unzip app | ||
unzip pf4j-spring-demo-app-*.zip | ||
rm pf4j-spring-demo-app-*.zip | ||
|
||
REM run demo | ||
java -jar pf4j-spring-demo-app-*-SNAPSHOT.jar | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# This script creates and run the pf4j-spring demo. | ||
# | ||
|
||
# create artifacts using maven | ||
mvn clean package -DskipTests | ||
|
||
# create demo-dist folder | ||
rm -fr demo-dist | ||
mkdir -p demo-dist/plugins | ||
|
||
# copy artifacts to demo-dist folder | ||
cp -r demo/app/target/pf4j-spring-demo-*/* demo-dist/ | ||
cp demo/plugins/*/target/*plugin.jar demo-dist/plugins/ | ||
|
||
# run demo | ||
cd demo-dist | ||
java -jar pf4j-spring-demo-app-*-SNAPSHOT.jar | ||
cd - | ||
|