changeset 39:3201f93801d0

add a module that generates a webstart package
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 09 Oct 2011 08:15:11 +0200
parents 6c85a4fcfe28
children fd71a5d17fd9
files .hgignore pom.xml webstart-package/generate-keystore.sh webstart-package/pom.xml webstart-package/src/jnlp/keystore webstart-package/src/jnlp/template.vm
diffstat 6 files changed, 96 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Sun Oct 09 07:29:59 2011 +0200
+++ b/.hgignore	Sun Oct 09 08:15:11 2011 +0200
@@ -7,3 +7,5 @@
 ^conflict-editor/\.project$
 syntax: regexp
 ^conflict-editor/target$
+syntax: regexp
+^webstart-package/target$
--- a/pom.xml	Sun Oct 09 07:29:59 2011 +0200
+++ b/pom.xml	Sun Oct 09 08:15:11 2011 +0200
@@ -15,6 +15,7 @@
 
     <modules>
         <module>conflict-editor</module>
+        <module>webstart-package</module>
     </modules>
 
     <build>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webstart-package/generate-keystore.sh	Sun Oct 09 08:15:11 2011 +0200
@@ -0,0 +1,3 @@
+keytool -genkey -alias conflicteditor -validity 1800 -keypass secret \
+    -storepass secret -keystore src/jnlp/keystore \
+    -dname "CN=ConflictEditor, OU=Hackers dept., O=codedo.de, ST=NRW, C=DE"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webstart-package/pom.xml	Sun Oct 09 08:15:11 2011 +0200
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>de.codedo</groupId>
+        <artifactId>conflict-editor-parent</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <artifactId>conflict-editor-webstart</artifactId>
+    <packaging>pom</packaging>
+    <name>WebStart package for Conflict Editor</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>de.codedo</groupId>
+            <artifactId>conflict-editor</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo.webstart</groupId>
+                <artifactId>webstart-maven-plugin</artifactId>
+                <version>1.0-beta-2</version>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>jnlp-inline</goal>
+                        </goals>
+                        <configuration>
+                            <verbose>true</verbose>
+                            <jnlp>
+                                <inputTemplate>src/jnlp/template.vm</inputTemplate>
+                                <outputFile>launch.jnlp</outputFile>
+                                <mainClass>de.codedo.conflicteditor.gui.ConflictEditor</mainClass>
+                            </jnlp>
+                            <sign>
+                                <keystore>${project.basedir}/src/jnlp/keystore</keystore>
+                                <keypass>secret</keypass>
+                                <storepass>secret</storepass>
+                                <alias>conflicteditor</alias>
+<!--                                 <validity>1800</validity> -->
+
+                            <!-- <dnameCn>www.annyway.net</dnameCn> -->
+                            <!-- <dnameOu>Development</dnameOu> -->
+                            <!-- <dnameO>MA-Projects</dnameO> -->
+                            <!-- <dnameL>Dortmund</dnameL> -->
+                            <!-- <dnameSt>NRW</dnameSt> -->
+                            <!-- <dnameC>DE</dnameC> -->
+
+                            <!-- <verify>true</verify> -->
+                            </sign>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
Binary file webstart-package/src/jnlp/keystore has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webstart-package/src/jnlp/template.vm	Sun Oct 09 08:15:11 2011 +0200
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<jnlp codebase="http://xanthippe.dyndns.org/ConflictEditor" href="$outputFile">
+    <information>
+        <title>Conflict Editor</title>
+        <vendor>Codedo.de</vendor>
+        <homepage href="http://xanthippe.dyndns.org/ConflictEditor"/>
+        <description>Confict Editor</description>
+        <description kind="short">Editor for couchdb conflicts</description>
+
+        <!-- Allow starting the app without existing internet connection -->
+        <offline-allowed/>
+    </information>
+
+    <!-- The data is stored on the client using the java.util.prefs.Preferences API.
+         Since this is protected by a SecurityManager and there's no convenient way
+         to store data on the client in a WebStart conforming way, request all permissions
+         from user and stick with the Preferences API. -->
+    <security>
+        <all-permissions/>
+    </security>
+
+    <resources>
+        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
+        $dependencies
+    </resources>
+
+    <application-desc main-class="$mainClass"/>
+</jnlp>