Browse Source

added run-demo.bat

pull/3/head
Decebal Suiu 12 years ago
parent
commit
a8c2c6b948
  1. 7
      demo/app/src/main/assembly/assembly.xml
  2. 26
      run-demo.bat

7
demo/app/src/main/assembly/assembly.xml

@ -5,9 +5,10 @@
@version 1.0 @version 1.0
--> -->
<assembly> <assembly>
<id>plugin</id> <id>app</id>
<formats> <formats>
<format>dir</format> <format>dir</format>
<format>zip</format>
</formats> </formats>
<includeBaseDirectory>false</includeBaseDirectory> <includeBaseDirectory>false</includeBaseDirectory>
<dependencySets> <dependencySets>
@ -26,6 +27,10 @@
<includes> <includes>
<include>*.jar</include> <include>*.jar</include>
</includes> </includes>
<excludes>
<exclude>*-javadoc.jar</exclude>
<exclude>*-sources.jar</exclude>
</excludes>
</fileSet> </fileSet>
</fileSets> </fileSets>
</assembly> </assembly>

26
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 ..
Loading…
Cancel
Save