]> source.dussan.org Git - pf4j.git/commitdiff
added run-demo.bat
authorDecebal Suiu <decebal.suiu@gmail.com>
Fri, 17 May 2013 08:23:41 +0000 (11:23 +0300)
committerDecebal Suiu <decebal.suiu@gmail.com>
Fri, 17 May 2013 08:23:41 +0000 (11:23 +0300)
demo/app/src/main/assembly/assembly.xml
run-demo.bat [new file with mode: 0644]

index 1d9e8e43ae1d0b9d803aaeaeca6e273bdce7580e..ef8515d56ceb4f7e151b33aca5ec65f704f944a5 100644 (file)
@@ -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>
             <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 (file)
index 0000000..05c53df
--- /dev/null
@@ -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 ..