summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:59:19 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:59:19 +0000
commitac47a525b1338100c7489ec60fed24ce10f57394 (patch)
treea878ee56023a9d04afaedd96306a5fd78fdd8b48 /pdf-over-gui
parent7b3d85e31537acc7da994aebeece26bbdf2ecc7a (diff)
downloadmocca-ac47a525b1338100c7489ec60fed24ce10f57394.tar.gz
mocca-ac47a525b1338100c7489ec60fed24ce10f57394.tar.bz2
mocca-ac47a525b1338100c7489ec60fed24ce10f57394.zip
Installer generation first commit
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@68 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/PDFOver.config8
-rw-r--r--pdf-over-gui/pom.xml168
-rw-r--r--pdf-over-gui/src/main/izpack/install.xml68
-rw-r--r--pdf-over-gui/src/main/izpack/unix_shortcutSpec.xml29
-rw-r--r--pdf-over-gui/src/main/izpack/win_shortcutSpec.xml29
-rw-r--r--pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties113
-rw-r--r--pdf-over-gui/src/main/scripts/pdfover_linux.sh2
-rw-r--r--pdf-over-gui/src/main/scripts/pdfover_mac.sh2
-rw-r--r--pdf-over-gui/src/main/scripts/pdfover_win.bat1
9 files changed, 416 insertions, 4 deletions
diff --git a/pdf-over-gui/PDFOver.config b/pdf-over-gui/PDFOver.config
index e631560a..f0757f93 100644
--- a/pdf-over-gui/PDFOver.config
+++ b/pdf-over-gui/PDFOver.config
@@ -1,9 +1,9 @@
#Configuration file was generated!
-#Tue Sep 11 11:14:23 CEST 2012
-OUTPUT_FOLDER=/home/andy/PDF
+#Wed Sep 12 15:51:13 CEST 2012
+OUTPUT_FOLDER=
PROXY_PORT=-1
-EMBLEM=/home/andy/fitzek_andreas_l.jpg
+EMBLEM=
SIGNATURE_POSITION=
PROXY_HOST=
-MOBILE_NUMBER=+436504892002
+MOBILE_NUMBER=
BKU=NONE
diff --git a/pdf-over-gui/pom.xml b/pdf-over-gui/pom.xml
index 606f6d1b..646493e4 100644
--- a/pdf-over-gui/pom.xml
+++ b/pdf-over-gui/pom.xml
@@ -17,6 +17,12 @@
<version>3.8</version>
</dependency>
<dependency>
+ <groupId>org.codehaus.izpack</groupId>
+ <artifactId>izpack-standalone-compiler</artifactId>
+ <version>${izpack-standalone.version}</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
@@ -40,6 +46,142 @@
</dependency>
</dependencies>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <!-- Ignore/Execute plugin execution -->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <!-- copy-dependency plugin -->
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <versionRange>[1.0.0,)</versionRange>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore />
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar</descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix></classpathPrefix>
+ <mainClass>at.asit.pdfover.gui.Main</mainClass>
+ </manifest>
+ </archive>
+ <outputDirectory>${staging.dir}/lib</outputDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <!-- copy product jars to izpack staging lib -->
+ <id>copy-product-dependencies</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${staging.dir}/lib</outputDirectory>
+ <excludeTransitive>false</excludeTransitive>
+ <stripVersion>false</stripVersion>
+ <overWriteReleases>true</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ <excludeScope>system</excludeScope> <!-- this excludes tools.jar, e.g. -->
+ <excludeGroupIds>org.codehaus.izpack</excludeGroupIds>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.4.2</version>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ <outputDirectory>${staging.dir}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main</directory>
+ <includes>
+ <include>scripts/*</include>
+ <include>icons/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/izpack</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.izpack</groupId>
+ <artifactId>izpack-maven-plugin</artifactId>
+ <version>1.0-alpha-5</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.izpack</groupId>
+ <artifactId>izpack-standalone-compiler</artifactId>
+ <version>${izpack-standalone.version}</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <izpackBasedir>${staging.dir}</izpackBasedir>
+ <izpackOutput>${staging.dir}/setup.jar</izpackOutput>
+ </configuration>
+ <executions>
+ <execution>
+ <id>standard-installer</id>
+ <phase>package</phase>
+ <goals>
+ <goal>izpack</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <properties>
+ <staging.dir>${project.build.directory}/staging</staging.dir>
+ <target.name>linux</target.name>
+ <izpack-standalone.version>4.3.5</izpack-standalone.version>
+ </properties>
+
<profiles>
<profile>
<id>linux</id>
@@ -51,6 +193,8 @@
</activation>
<properties>
<swt.artifactId>org.eclipse.swt.gtk.linux.x86</swt.artifactId>
+ <staging.dir>${project.build.directory}/staging/linux</staging.dir>
+ <target.name>linux</target.name>
</properties>
</profile>
<profile>
@@ -63,6 +207,8 @@
</activation>
<properties>
<swt.artifactId>org.eclipse.swt.gtk.linux.x86_64</swt.artifactId>
+ <staging.dir>${project.build.directory}/staging/linux-64</staging.dir>
+ <target.name>linux-64</target.name>
</properties>
</profile>
@@ -76,6 +222,8 @@
</activation>
<properties>
<swt.artifactId>org.eclipse.swt.win32.win32.x86</swt.artifactId>
+ <staging.dir>${project.build.directory}/staging/windows</staging.dir>
+ <target.name>windows</target.name>
</properties>
</profile>
<profile>
@@ -88,6 +236,8 @@
</activation>
<properties>
<swt.artifactId>org.eclipse.swt.win32.win32.x86_64</swt.artifactId>
+ <staging.dir>${project.build.directory}/staging/windows-64</staging.dir>
+ <target.name>windows-64</target.name>
</properties>
</profile>
@@ -101,6 +251,8 @@
</activation>
<properties>
<swt.artifactId>org.eclipse.swt.cocoa.macosx</swt.artifactId>
+ <staging.dir>${project.build.directory}/staging/mac</staging.dir>
+ <target.name>mac</target.name>
</properties>
</profile>
<profile>
@@ -113,6 +265,8 @@
</activation>
<properties>
<swt.artifactId>org.eclipse.swt.cocoa.macosx.x86_64</swt.artifactId>
+ <staging.dir>${project.build.directory}/staging/mac-64</staging.dir>
+ <target.name>mac-64</target.name>
</properties>
</profile>
</profiles>
@@ -122,5 +276,19 @@
<id>swt-repo</id>
<url>https://swt-repo.googlecode.com/svn/repo/</url>
</repository>
+ <repository>
+ <id>akathist-repository</id>
+ <name>Akathist Repository</name>
+ <url>http://www.9stmaryrd.com/maven</url>
+ </repository>
</repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>akathist-repository</id>
+ <name>Akathist Repository</name>
+ <url>http://www.9stmaryrd.com/maven</url>
+ </pluginRepository>
+ </pluginRepositories>
+
</project> \ No newline at end of file
diff --git a/pdf-over-gui/src/main/izpack/install.xml b/pdf-over-gui/src/main/izpack/install.xml
new file mode 100644
index 00000000..002584ca
--- /dev/null
+++ b/pdf-over-gui/src/main/izpack/install.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<installation version="1.0">
+
+ <info>
+ <appname>PDFOver</appname>
+ <appversion>4.0</appversion>
+ <uninstaller write="no" />
+ <javaversion>1.6</javaversion>
+ <authors>
+ <author name="A-SIT (Secure Information Technology Center - Austria)" email="" />
+ </authors>
+ <uninstaller/>
+ <url>http://www.a-sit.at/</url>
+ <pack200 />
+ <run-privileged condition="izpack.windowsinstall.vista|izpack.macinstall|izpack.windowsinstall.7"/>
+ </info>
+
+ <guiprefs resizable="no" width="480" height="360">
+ <laf name="looks">
+ <param name="variant" value="windows" />
+ <os family="windows" />
+ </laf>
+ </guiprefs>
+
+ <locale>
+ <langpack iso3="eng" />
+ </locale>
+ <resources>
+ <res src="./unix_shortcutSpec.xml" id="Unix_shortcutSpec.xml" />
+ <res src="./win_shortcutSpec.xml" id="Win_shortcutSpec.xml" />
+ </resources>
+
+ <native type="izpack" name="ShellLink.dll">
+ <os family="windows" />
+ </native>
+ <native type="izpack" name="ShellLink_x64.dll">
+ <os family="windows" />
+ </native>
+
+ <variables>
+ <variable name="DesktopShortcutCheckboxEnabled" value="true" />
+ </variables>
+
+ <panels>
+ <panel classname="HelloPanel" />
+ <panel classname="TargetPanel" />
+ <panel classname="InstallPanel" />
+ <panel classname="ShortcutPanel" />
+ <panel classname="SimpleFinishPanel" />
+ </panels>
+
+ <packs>
+ <pack name="main" required="yes">
+ <description>Main Installation</description>
+ <file src="lib" targetdir="$INSTALL_PATH" />
+ <file src="scripts" targetdir="$INSTALL_PATH" />
+ <file src="icons" targetdir="$INSTALL_PATH" />
+ <executable targetfile="$INSTALL_PATH/scripts/pdfover_linux.sh"
+ os="unix" stage="never"></executable>
+ <executable targetfile="$INSTALL_PATH/scripts/pdfover_win.bat"
+ os="windows" stage="never"></executable>
+ <executable targetfile="$INSTALL_PATH/scripts/pdfover_mac.sh"
+ os="mac" stage="never"></executable>
+ </pack>
+ </packs>
+
+</installation> \ No newline at end of file
diff --git a/pdf-over-gui/src/main/izpack/unix_shortcutSpec.xml b/pdf-over-gui/src/main/izpack/unix_shortcutSpec.xml
new file mode 100644
index 00000000..05e8bee8
--- /dev/null
+++ b/pdf-over-gui/src/main/izpack/unix_shortcutSpec.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+
+<shortcuts>
+ <!-- <skipIfNotSupported/> -->
+ <programGroup defaultName="PDFOver"
+ location="applications"/>
+
+ <shortcut
+ name="PDFOver"
+ programGroup="yes"
+ desktop="yes"
+ applications="no"
+ startMenu="yes"
+ startup="no"
+ target="$INSTALL_PATH/scripts/pdfover_linux.sh"
+ commandLine=""
+ workingDirectory="$INSTALL_PATH"
+ description="PDFOver 4.0"
+ iconFile="$INSTALL_PATH/icons/pdfover.png"
+ iconIndex="0"
+ type="Application"
+ encoding="UTF-8"
+ terminal="false"
+ KdeSubstUID="false"
+ initialState="normal">
+ <createForPack name="main"/>
+ </shortcut>
+
+</shortcuts> \ No newline at end of file
diff --git a/pdf-over-gui/src/main/izpack/win_shortcutSpec.xml b/pdf-over-gui/src/main/izpack/win_shortcutSpec.xml
new file mode 100644
index 00000000..8ad6666f
--- /dev/null
+++ b/pdf-over-gui/src/main/izpack/win_shortcutSpec.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+
+<shortcuts>
+ <!-- <skipIfNotSupported/> -->
+ <programGroup defaultName="PDFOver"
+ location="applications"/>
+
+ <shortcut
+ name="PDFOver"
+ programGroup="yes"
+ desktop="yes"
+ applications="no"
+ startMenu="yes"
+ startup="no"
+ target="$INSTALL_PATH/scripts/pdfover_win.bat"
+ commandLine=""
+ workingDirectory="$INSTALL_PATH/lib"
+ description="PDFOver 4.0"
+ iconFile="$INSTALL_PATH/icons/pdfover.ico"
+ iconIndex="0"
+ type="Application"
+ encoding="UTF-8"
+ terminal="false"
+ KdeSubstUID="false"
+ initialState="normal">
+ <createForPack name="main"/>
+ </shortcut>
+
+</shortcuts> \ No newline at end of file
diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
new file mode 100644
index 00000000..244cfb3d
--- /dev/null
+++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
@@ -0,0 +1,113 @@
+TrustedSocketFactory.FailedToCreateSecureConnection=Failed to create secure network connection
+
+main.title=PDF-Over
+main.configuration=Configuration
+main.position=Positioning
+main.signature=Signing
+main.done=Finish
+
+common.browse=browse
+common.Cancel=Cancel
+common.Ok=OK
+common.Save=Save
+common.PDFExtension_Description=PDF documents
+common.JPGExtension_Description=JPG Dateien
+common.GIFExtension_Description=Gif Dateien
+common.ALLExtension_Description=All files
+common.file=File:
+common.file_not_exists= does not exist!
+common.open=Open
+
+config.Simple=Simple
+config.Advanced=Advanced
+
+advanced_config.AutoPosition_Title=Positioning
+advanced_config.AutoPosition=Automatic positioning
+advanced_config.BKUSelection_Title=BKU Selection
+advanced_config.OutputFolder_Title=Output location
+advanced_config.OutputFolder=Default output folder:
+advanced_config.OutputFolder.Dialog_Title=Select Output folder
+advanced_config.OutputFolder.Dialog=Select a folder
+
+simple_config.Emblem_Title=Emblem
+simple_config.EmblemEmpty=No Image. Drag and Drop a Image. Or use the browse button to select an emblem.
+simple_config.UseEmblem=Use emblem
+simple_config.MobileBKU_Title=Mobile signature
+simple_config.PhoneNumber=Mobile number:
+simple_config.ExampleNumber=+43676123456789
+simple_config.Proxy_Title=Proxy
+simple_config.ProxyHost=Host:
+simple_config.ProxyHostTemplate=Hostname or IP of proxy server
+simple_config.ProxyPort=Port:
+simple_config.ProxyPortTemplate=port proxy server [1-65535]
+
+
+
+dataSourceSelection.DropLabel=To sign a document\ndrag and drop it here\nor use the button below
+
+bku_selection.card=CARD
+bku_selection.mobile=MOBILE
+
+mobileBKU.number=Number:
+mobileBKU.password=Password:
+
+tanEnter.tries= tries left!"
+tanEnter.ReferenceValue=reference value
+tanEnter.TAN=TAN:
+
+BKU.LOCAL=Local BKU
+BKU.MOBILE=Mobile BKU
+BKU.NONE=no default
+
+error.SaveOutputFolder=Failed to save signed document to configured output folder.
+error.Signatur=Signature error
+error.PrepareDocument=Failed to prepare document for signature.
+error.Initialization=Initialization failed. Please check your configuration.
+error.Unexpected=Unexpected Error
+error.LocalBKU=Please check if a local BKU is running
+error.Details=Details
+error.Retry=Retry
+error.InvalidBKU=Invalid BKU selection. Please check.
+error.InvalidSettings=Invalid settings are still present. Please check your input.
+error.FailedToSaveSettings=Failed to save configuration file!
+error.InvalidPhoneNumber=Given phone number is invalid! Example: +43664123456789
+error.EnteredReferenceValue=You entered the reference value!
+error.TanTooLong=Entered TAN too long
+error.FailedToGetSignedDocument=Failed to get signed document.
+error.FailedToLoadEmblem=Failed to load the emblem
+
+exception.InvalidEmblemFile= is an invalid emblem file!
+exception.InvalidPort= is invalid has to be between 1 and
+exception.PasswordTooLong=Given password is too long!
+exception.PasswordTooShort=Given password is too short!
+
+argument.help.bku=Select the BKU to use values are: LOCAL, MOBILE (example: -b <option>
+argument.invalid.bku=BKU Argument invalid! Use:
+
+argument.help.config=Defines which configuration file to use. Example: -c <config file>
+argument.invalid.config=Configuration File Argument invalid! Use:
+
+argument.help.emblem=Sets the emblem file to use for the signature. Example: -e <emblem file>
+argument.invalid.emblem=Emblem argument invalid! Use:
+
+argument.help.help=shows this help message
+argument.info.help=The following options are available:
+
+argument.help.input=Sets the document to sign. Example: -i <input document>
+argument.invalid.input=Document to sign argument invalid! Use:
+
+argument.help.output=Sets the output folder to use. Example: -o <folder>
+argument.invalid.output=Output folder argument invalid! Use:
+argument.error.output= is not a directory
+
+argument.help.password=Sets the password to use for mobile bku. Example: -p <password>
+argument.invalid.password=Mobile BKU password invalid! Use:
+
+argument.help.number=Sets the telephone number to use for mobile bku. Example: -n <number>
+argument.invalid.number=Phone Number Argument invalid! Use:
+
+argument.help.proxyhost=Sets the proxy host to use. Example: -proxy <hostname/IP>
+argument.invalid.proxyhost=Proxy host argument invalid! Use:
+
+argument.help.proxyport=Sets the proxy port to use. Example: -proxyport <port>
+argument.invalid.proxyport=Proxy port argument invalid! Use: \ No newline at end of file
diff --git a/pdf-over-gui/src/main/scripts/pdfover_linux.sh b/pdf-over-gui/src/main/scripts/pdfover_linux.sh
new file mode 100644
index 00000000..b785db7c
--- /dev/null
+++ b/pdf-over-gui/src/main/scripts/pdfover_linux.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -cp "lib/*" at.asit.pdfover.gui.Main \ No newline at end of file
diff --git a/pdf-over-gui/src/main/scripts/pdfover_mac.sh b/pdf-over-gui/src/main/scripts/pdfover_mac.sh
new file mode 100644
index 00000000..b785db7c
--- /dev/null
+++ b/pdf-over-gui/src/main/scripts/pdfover_mac.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -cp "lib/*" at.asit.pdfover.gui.Main \ No newline at end of file
diff --git a/pdf-over-gui/src/main/scripts/pdfover_win.bat b/pdf-over-gui/src/main/scripts/pdfover_win.bat
new file mode 100644
index 00000000..222bd263
--- /dev/null
+++ b/pdf-over-gui/src/main/scripts/pdfover_win.bat
@@ -0,0 +1 @@
+..\lib\pdf-over-gui-4.0.0-SNAPSHOT.jar %* \ No newline at end of file