diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2012-10-11 13:29:43 +0300 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2012-10-11 13:29:43 +0300 |
commit | 2aeb77b8c8e6023651d1fc7b9ef31736b855cafa (patch) | |
tree | 00b9bf8944c517fe991dbf83da672c002f9f12f0 /run-demo.sh | |
download | pf4j-2aeb77b8c8e6023651d1fc7b9ef31736b855cafa.tar.gz pf4j-2aeb77b8c8e6023651d1fc7b9ef31736b855cafa.zip |
first commit
Diffstat (limited to 'run-demo.sh')
-rwxr-xr-x | run-demo.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/run-demo.sh b/run-demo.sh new file mode 100755 index 0000000..bea8ba2 --- /dev/null +++ b/run-demo.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# +# This script creates and run the pf4j demo. +# + +# create artifacts using maven +mvn clean package + +# create demo-dist folder +rm -fr demo-dist +mkdir demo-dist +mkdir demo-dist/plugins + +# copy artifacts to demo-dist folder +cp -r demo/app/target/pf4j-demo-*/* demo-dist/ +cp demo/plugin1/target/pf4j-demo-plugin1-*.zip demo-dist/plugins/ +cp demo/plugin2/target/pf4j-demo-plugin2-*.zip demo-dist/plugins/ + +# run demo +cd demo-dist +java -jar pf4j-demo-app-*.jar +cd - + |