Skip to content

Commit

Permalink
Add run-demo scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
decebals committed Sep 12, 2018
1 parent 5796193 commit 5749257
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
26 changes: 26 additions & 0 deletions run-demo.bat
@@ -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 ..
22 changes: 22 additions & 0 deletions run-demo.sh
@@ -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 -

0 comments on commit 5749257

Please sign in to comment.