summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2013-05-17 11:23:41 +0300
committerDecebal Suiu <decebal.suiu@gmail.com>2013-05-17 11:23:41 +0300
commita8c2c6b948fa3f7a0c14c14714851c55939c74c8 (patch)
tree30e3242d1d4197bfe36896e3681dc02425b860d9
parent7e1b5d6dfacce7ae1eb1a8eb4779369b62922d9f (diff)
downloadpf4j-a8c2c6b948fa3f7a0c14c14714851c55939c74c8.tar.gz
pf4j-a8c2c6b948fa3f7a0c14c14714851c55939c74c8.zip
added run-demo.bat
-rw-r--r--demo/app/src/main/assembly/assembly.xml7
-rw-r--r--run-demo.bat26
2 files changed, 32 insertions, 1 deletions
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
-->
<assembly>
- <id>plugin</id>
+ <id>app</id>
<formats>
<format>dir</format>
+ <format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
@@ -26,6 +27,10 @@
<includes>
<include>*.jar</include>
</includes>
+ <excludes>
+ <exclude>*-javadoc.jar</exclude>
+ <exclude>*-sources.jar</exclude>
+ </excludes>
</fileSet>
</fileSets>
</assembly>
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 ..