diff options
author | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2009-08-27 20:02:45 +0000 |
---|---|---|
committer | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2009-08-27 20:02:45 +0000 |
commit | 49439f0912a2f0e23cf4bcf63967d177658a837c (patch) | |
tree | 824e3c11c218dc636ec630bc822bf94023247e34 /BKUWebStartPackage | |
parent | 0acb5643e945daf024c0dec04f0ad86d6427b7b0 (diff) | |
download | mocca-49439f0912a2f0e23cf4bcf63967d177658a837c.tar.gz mocca-49439f0912a2f0e23cf4bcf63967d177658a837c.tar.bz2 mocca-49439f0912a2f0e23cf4bcf63967d177658a837c.zip |
seperate BKUWebStart main jar and BKUWebStart bundle
use webstart-maven-plugin:jnlp-download-servlet goal to get versions right
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@478 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUWebStartPackage')
-rw-r--r-- | BKUWebStartPackage/nbactions.xml | 10 | ||||
-rw-r--r-- | BKUWebStartPackage/pom.xml | 186 | ||||
-rw-r--r-- | BKUWebStartPackage/src/main/assemblies/zip-webstart.xml | 35 | ||||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/keystore.ks | bin | 0 -> 5635 bytes | |||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/resources/img/chip128.png | bin | 0 -> 7775 bytes | |||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/resources/img/chip16.png | bin | 0 -> 787 bytes | |||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/resources/img/chip24.png | bin | 0 -> 1227 bytes | |||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/resources/img/chip32.png | bin | 0 -> 1753 bytes | |||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/resources/img/chip48.png | bin | 0 -> 2771 bytes | |||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/resources/img/splash.png | bin | 0 -> 41455 bytes | |||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/resources/img/version.xml | 52 | ||||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/resources/player.jnlp | 3 | ||||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/template-local.xml | 41 | ||||
-rw-r--r-- | BKUWebStartPackage/src/main/jnlp/template.xml | 45 |
14 files changed, 372 insertions, 0 deletions
diff --git a/BKUWebStartPackage/nbactions.xml b/BKUWebStartPackage/nbactions.xml new file mode 100644 index 00000000..b3a586c0 --- /dev/null +++ b/BKUWebStartPackage/nbactions.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<actions> + <action> + <actionName>CUSTOM-assembly</actionName> + <displayName>assembly</displayName> + <goals> + <goal>assembly:assembly</goal> + </goals> + </action> + </actions> diff --git a/BKUWebStartPackage/pom.xml b/BKUWebStartPackage/pom.xml new file mode 100644 index 00000000..2f9ccb5f --- /dev/null +++ b/BKUWebStartPackage/pom.xml @@ -0,0 +1,186 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>bku</artifactId> + <groupId>at.gv.egiz</groupId> + <version>1.2.4-SNAPSHOT</version> + </parent> + <groupId>at.gv.egiz</groupId> + <artifactId>BKUWebStartPackage</artifactId> + <version>1.2.4-SNAPSHOT</version> + <packaging>pom</packaging> + <name>BKU Web Start Package</name> + <description>Bürgerkartenumgebung</description> + <url>http://mocca.egovlabs.gv.at/</url> + + <build> + <plugins> + <plugin> + <artifactId>webstart-maven-plugin</artifactId> + <groupId>org.codehaus.mojo.webstart</groupId> + <executions> + <execution> + <phase>process-resources</phase> + <goals> + <goal>jnlp-download-servlet</goal> + </goals> + </execution> + </executions> + <configuration> + <outputDirectoryName>webstart</outputDirectoryName> + + <excludeTransitive>false</excludeTransitive> + + <jnlpFiles> + <jnlpFile> + <templateFilename>template.xml</templateFilename> + <outputFilename>mocca.jnlp</outputFilename> + <jarResources> + <jarResource> + <groupId>at.gv.egiz</groupId> + <artifactId>BKUWebStart</artifactId> + <version>${project.version}</version> + <mainClass>at.gv.egiz.bku.webstart.Launcher</mainClass> + </jarResource> + </jarResources> + </jnlpFile> + </jnlpFiles> + + <sign> + <alias>test-applet signer</alias> + <keystore>${project.basedir}/src/main/jnlp/keystore.ks</keystore> + <storepass>storepass</storepass> + <keypass>keypass</keypass> + <verify>true</verify> + <keystoreConfig> + <delete>false</delete> + <gen>false</gen> + </keystoreConfig> + </sign> + + <unsign>true</unsign> + <verifyjar>false</verifyjar> + + <pack200>false</pack200> + <gzip>false</gzip> + <outputJarVersions>false</outputJarVersions> + <verbose>true</verbose> + + </configuration> + </plugin> + + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + <configuration> + <descriptors> + <descriptor>${basedir}/src/main/assemblies/zip-webstart.xml</descriptor> + </descriptors> + </configuration> + </plugin> + + </plugins> + </build> + + <dependencies> + <dependency> + <artifactId>BKUWebStart</artifactId> + <groupId>at.gv.egiz</groupId> + <version>${project.version}</version> + </dependency> + </dependencies> + + <profiles> + <profile> + <id>pkcs11-sign</id> + <build> + <plugins> + <plugin> + <artifactId>webstart-maven-plugin</artifactId> + <groupId>org.codehaus.mojo.webstart</groupId> + <!-- use pkcs11-patched webstart-maven-plugin--> + <version>1.0-beta-1-mocca</version> + <configuration> + <sign> + <keystore>NONE</keystore> + <storetype>PKCS11</storetype> + <providerClass>iaik.pkcs.pkcs11.provider.IAIKPkcs11</providerClass> + <alias>a-sit</alias> + <storepass>${pkcs11-pass}</storepass> + <verify>true</verify> + <keystoreConfig> + <delete>false</delete> + <gen>false</gen> + </keystoreConfig> + </sign> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <!-- development profile --> + <id>local-webstart</id> + <build> + <plugins> + <plugin> + <artifactId>webstart-maven-plugin</artifactId> + <groupId>org.codehaus.mojo.webstart</groupId> + <configuration> + <jnlpFiles> + <jnlpFile> + <templateFilename>template-local.xml</templateFilename> + <outputFilename>mocca-local.jnlp</outputFilename> + <jarResources> + <jarResource> + <groupId>at.gv.egiz</groupId> + <artifactId>BKUWebStart</artifactId> + <version>${project.version}</version> + <mainClass>at.gv.egiz.bku.webstart.Launcher</mainClass> + </jarResource> + </jarResources> + </jnlpFile> + </jnlpFiles> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>non-webstart</id> + <build> + <plugins> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <groupId>org.apache.maven.plugins</groupId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + <mainClass>at.gv.egiz.bku.webstart.Launcher</mainClass> + </manifest> + <manifestEntries> + <mode>development</mode> + <url>${pom.url}</url> + <SplashScreen-Image>at/gv/egiz/bku/webstart/splash.png</SplashScreen-Image> + </manifestEntries> + </archive> + </configuration> + </plugin> + </plugins> + </build> + <!-- TODO somehow provide javaws.jar on manifest class-path --> + </profile> + </profiles> +</project> diff --git a/BKUWebStartPackage/src/main/assemblies/zip-webstart.xml b/BKUWebStartPackage/src/main/assemblies/zip-webstart.xml new file mode 100644 index 00000000..fa39bdf0 --- /dev/null +++ b/BKUWebStartPackage/src/main/assemblies/zip-webstart.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2008 Federal Chancellery Austria and + Graz University of Technology + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<assembly> + <formats> + <format>zip</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <directory>${project.build.directory}/${project.build.finalName}/</directory> + <includes> + <include>webstart/**</include> + </includes> + <outputDirectory>/</outputDirectory> + </fileSet> + </fileSets> +</assembly> + + diff --git a/BKUWebStartPackage/src/main/jnlp/keystore.ks b/BKUWebStartPackage/src/main/jnlp/keystore.ks Binary files differnew file mode 100644 index 00000000..824c3a40 --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/keystore.ks diff --git a/BKUWebStartPackage/src/main/jnlp/resources/img/chip128.png b/BKUWebStartPackage/src/main/jnlp/resources/img/chip128.png Binary files differnew file mode 100644 index 00000000..c36d8079 --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/resources/img/chip128.png diff --git a/BKUWebStartPackage/src/main/jnlp/resources/img/chip16.png b/BKUWebStartPackage/src/main/jnlp/resources/img/chip16.png Binary files differnew file mode 100644 index 00000000..96b580e9 --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/resources/img/chip16.png diff --git a/BKUWebStartPackage/src/main/jnlp/resources/img/chip24.png b/BKUWebStartPackage/src/main/jnlp/resources/img/chip24.png Binary files differnew file mode 100644 index 00000000..efd6dbeb --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/resources/img/chip24.png diff --git a/BKUWebStartPackage/src/main/jnlp/resources/img/chip32.png b/BKUWebStartPackage/src/main/jnlp/resources/img/chip32.png Binary files differnew file mode 100644 index 00000000..e7efb020 --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/resources/img/chip32.png diff --git a/BKUWebStartPackage/src/main/jnlp/resources/img/chip48.png b/BKUWebStartPackage/src/main/jnlp/resources/img/chip48.png Binary files differnew file mode 100644 index 00000000..491fbcac --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/resources/img/chip48.png diff --git a/BKUWebStartPackage/src/main/jnlp/resources/img/splash.png b/BKUWebStartPackage/src/main/jnlp/resources/img/splash.png Binary files differnew file mode 100644 index 00000000..597fbc60 --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/resources/img/splash.png diff --git a/BKUWebStartPackage/src/main/jnlp/resources/img/version.xml b/BKUWebStartPackage/src/main/jnlp/resources/img/version.xml new file mode 100644 index 00000000..5e160beb --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/resources/img/version.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<jnlp-versions> + <resource> + <pattern> + <name>chip16.png</name> + <version-id>2.0</version-id> + </pattern> + <file>chip16.png</file> + </resource> + <resource> + <pattern> + <name>chip24.png</name> + <version-id>2.0</version-id> + </pattern> + <file>chip24.png</file> + </resource> + <resource> + <pattern> + <name>chip32.png</name> + <version-id>2.0</version-id> + </pattern> + <file>chip32.png</file> + </resource> + <resource> + <pattern> + <name>chip48.png</name> + <version-id>2.0</version-id> + </pattern> + <file>chip48.png</file> + </resource> + <resource> + <pattern> + <name>chip64.png</name> + <version-id>2.0</version-id> + </pattern> + <file>chip64.png</file> + </resource> + <resource> + <pattern> + <name>chip128.png</name> + <version-id>2.0</version-id> + </pattern> + <file>chip128.png</file> + </resource> + <resource> + <pattern> + <name>splash.png</name> + <version-id>2.0</version-id> + </pattern> + <file>splash.png</file> + </resource> +</jnlp-versions> diff --git a/BKUWebStartPackage/src/main/jnlp/resources/player.jnlp b/BKUWebStartPackage/src/main/jnlp/resources/player.jnlp new file mode 100644 index 00000000..da08ebc2 --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/resources/player.jnlp @@ -0,0 +1,3 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Jump specific JNL file for launching the player --> +<player/>
\ No newline at end of file diff --git a/BKUWebStartPackage/src/main/jnlp/template-local.xml b/BKUWebStartPackage/src/main/jnlp/template-local.xml new file mode 100644 index 00000000..d17c2782 --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/template-local.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<jnlp spec="$jnlpspec" codebase="file:/home/clemens/workspace/bku/BKUWebStart/target/jnlp" href="$outputFile"> + + <information> + <title>${project.Description}</title> + <vendor>E-Government Innovationszentrum (EGIZ)</vendor> + <homepage href="${project.Url}"/> + <description>${project.Description} (BKU) MOCCA Web Start</description> + <description kind="short">${project.Description}</description> + <icon kind="shortcut" href="img/chip16.png" width="16" height="16"/> + <icon kind="shortcut" href="img/chip24.png" width="24" height="24"/> + <icon kind="shortcut" href="img/chip32.png" width="32" height="32"/> + <icon kind="shortcut" href="img/chip48.png" width="48" height="48"/> + <icon kind="default" href="img/chip16.png" width="16" height="16"/> + <icon kind="default" href="img/chip24.png" width="24" height="24"/> + <icon kind="default" href="img/chip32.png" width="32" height="32"/> + <icon kind="default" href="img/chip48.png" width="48" height="48"/> + <icon kind="splash" href="img/splash.png"/> + <shortcut online="true"> + <desktop/> + <menu submenu="e-Government"/> + </shortcut> + + <offline-allowed/> + + </information> + + <security> + <all-permissions/> + </security> + + <update check="timeout" policy="prompt-update"/> + + <resources> + <java version="1.6+" java-vm-args="-Djava.security.debug=access,failure"/> + <property name="jnlp.versionEnabled" value="false"/> + $dependencies + </resources> + + <application-desc main-class="$mainClass"/> +</jnlp>
\ No newline at end of file diff --git a/BKUWebStartPackage/src/main/jnlp/template.xml b/BKUWebStartPackage/src/main/jnlp/template.xml new file mode 100644 index 00000000..dfb66c55 --- /dev/null +++ b/BKUWebStartPackage/src/main/jnlp/template.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<jnlp spec="$jnlpspec" codebase="http://localhost:8080/webstart/" context="http://localhost:8080" href="mocca.jnlp"> + + <information> + <title>${project.Description}</title> + <vendor>E-Government Innovationszentrum (EGIZ)</vendor> + <homepage href="${project.Url}"/> + <description>${project.Description} (BKU) MOCCA Web Start</description> + <description kind="short">${project.Description}</description> + <icon kind="shortcut" href="img/chip16.png" width="16" height="16"/> + <icon kind="shortcut" href="img/chip24.png" width="24" height="24"/> + <icon kind="shortcut" href="img/chip32.png" width="32" height="32"/> + <icon kind="shortcut" href="img/chip48.png" width="48" height="48"/> + <icon kind="default" href="img/chip16.png" width="16" height="16"/> + <icon kind="default" href="img/chip24.png" width="24" height="24"/> + <icon kind="default" href="img/chip32.png" width="32" height="32"/> + <icon kind="default" href="img/chip48.png" width="48" height="48"/> + <icon kind="splash" href="img/splash.png"/> + <shortcut online="true"> + <desktop/> + <menu submenu="e-Government"/> + </shortcut> + + <offline-allowed/> + + </information> + + <security> + <all-permissions/> + </security> + + <update check="timeout" policy="prompt-update"/> + + <resources os="Mac OS X"> + <java version="1.6+" java-vm-args="-d32"/> + $dependencies + </resources> + + <resources> + <java version="1.6+"/> + $dependencies + </resources> + + <application-desc main-class="$mainClass"/> +</jnlp>
\ No newline at end of file |