summaryrefslogtreecommitdiff
path: root/pdf-over-gui/pom.xml
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:39:32 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:39:32 +0000
commitb38409595346e3caabe63aca51c3ff7dadd9d092 (patch)
tree2e2dd5affd22a60427a0d42e5aef3b604bedf0c4 /pdf-over-gui/pom.xml
parent42d292e5cee2fc282a09e7e0b307844deb27f368 (diff)
downloadpdf-over-b38409595346e3caabe63aca51c3ff7dadd9d092.tar.gz
pdf-over-b38409595346e3caabe63aca51c3ff7dadd9d092.tar.bz2
pdf-over-b38409595346e3caabe63aca51c3ff7dadd9d092.zip
Use launch4j instead of winrun4j
Executables are generated on build by maven Should fix 64bit Java problems git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@436 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/pom.xml')
-rw-r--r--pdf-over-gui/pom.xml137
1 files changed, 131 insertions, 6 deletions
diff --git a/pdf-over-gui/pom.xml b/pdf-over-gui/pom.xml
index 812a39c5..ba789bbb 100644
--- a/pdf-over-gui/pom.xml
+++ b/pdf-over-gui/pom.xml
@@ -164,9 +164,6 @@
<include>lib-swt/swt-${target.name}-*</include>
<include>scripts/*</include>
<include>ReadMe.txt</include>
- <include>PDF-Over.exe</include>
- <include>PDF-Over.ini</include>
- <include>PDF-Over-Un.ini</include>
</includes>
</resource>
<resource>
@@ -177,6 +174,137 @@
</execution>
</executions>
</plugin>
+
+ <plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <source>
+ project.properties["version.exe"] = project.version.split("-")[0] + ".0";
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>com.akathist.maven.plugins.launch4j</groupId>
+ <artifactId>launch4j-maven-plugin</artifactId>
+ <version>1.5.2</version>
+ <executions>
+ <execution>
+ <id>l4j-gui</id>
+ <phase>package</phase>
+ <goals>
+ <goal>launch4j</goal>
+ </goals>
+ <configuration>
+ <headerType>gui</headerType>
+ <dontWrapJar>true</dontWrapJar>
+ <jar>lib/${artifactId}-${version}.jar</jar>
+ <outfile>${staging.dir}/PDF-Over.exe</outfile>
+ <errTitle>Error</errTitle>
+ <classPath>
+ <mainClass>at.asit.pdfover.gui.Main</mainClass>
+ <jarLocation>lib/</jarLocation>
+ </classPath>
+ <chdir>.</chdir>
+ <icon>src/main/resources/icons/icon.ico</icon>
+ <jre>
+ <minVersion>1.6.0</minVersion>
+ </jre>
+ <versionInfo>
+ <fileVersion>${version.exe}</fileVersion>
+ <txtFileVersion>${version}</txtFileVersion>
+ <fileDescription>PDF-Over PDF signer</fileDescription>
+ <copyright>(C) 2012 A-SIT</copyright>
+ <productVersion>${version.exe}</productVersion>
+ <txtProductVersion>${version}</txtProductVersion>
+ <productName>PDF-Over</productName>
+ <internalName>PDF-Over</internalName>
+ <originalFilename>PDF-Over.exe</originalFilename>
+ </versionInfo>
+ </configuration>
+ </execution>
+ <execution>
+ <id>l4j-cli</id>
+ <phase>package</phase>
+ <goals>
+ <goal>launch4j</goal>
+ </goals>
+ <configuration>
+ <headerType>console</headerType>
+ <dontWrapJar>true</dontWrapJar>
+ <jar>lib/${artifactId}-${version}.jar</jar>
+ <outfile>${staging.dir}/PDF-Over-cli.exe</outfile>
+ <errTitle>Error</errTitle>
+ <classPath>
+ <mainClass>at.asit.pdfover.gui.Main</mainClass>
+ <jarLocation>lib/</jarLocation>
+ </classPath>
+ <chdir>.</chdir>
+ <icon>src/main/resources/icons/icon.ico</icon>
+ <jre>
+ <minVersion>1.6.0</minVersion>
+ </jre>
+ <versionInfo>
+ <fileVersion>${version.exe}</fileVersion>
+ <txtFileVersion>${version}</txtFileVersion>
+ <fileDescription>PDF-Over PDF signer CLI</fileDescription>
+ <copyright>(C) 2012 A-SIT</copyright>
+ <productVersion>${version.exe}</productVersion>
+ <txtProductVersion>${version}</txtProductVersion>
+ <productName>PDF-Over</productName>
+ <internalName>PDF-Over-cli</internalName>
+ <originalFilename>PDF-Over-cli.exe</originalFilename>
+ </versionInfo>
+ </configuration>
+ </execution>
+ <execution>
+ <id>l4j-uninst</id>
+ <phase>package</phase>
+ <goals>
+ <goal>launch4j</goal>
+ </goals>
+ <configuration>
+ <headerType>gui</headerType>
+ <dontWrapJar>true</dontWrapJar>
+ <jar>uninstaller.jar</jar>
+ <outfile>${staging.dir}/Uninstaller.exe</outfile>
+ <errTitle>Error</errTitle>
+ <classPath>
+ <mainClass>com.izforge.izpack.uninstaller.Uninstaller</mainClass>
+ <addDependencies>false</addDependencies>
+ <preCp>uninstaller.jar</preCp>
+ </classPath>
+ <chdir>.</chdir>
+ <icon>src/main/resources/icons/icon.ico</icon>
+ <jre>
+ <minVersion>1.6.0</minVersion>
+ </jre>
+ <versionInfo>
+ <fileVersion>${version.exe}</fileVersion>
+ <txtFileVersion>${version}</txtFileVersion>
+ <fileDescription>PDF-Over Uninstaller</fileDescription>
+ <copyright>A-SIT (Secure Information Technology Center - Austria)</copyright>
+ <productVersion>${version.exe}</productVersion>
+ <txtProductVersion>${version}</txtProductVersion>
+ <productName>PDF-Over</productName>
+ <internalName>Uninstaller</internalName>
+ <originalFilename>Uninstaller.exe</originalFilename>
+ </versionInfo>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
<plugin>
<groupId>org.codehaus.izpack</groupId>
<artifactId>izpack-maven-plugin</artifactId>
@@ -213,9 +341,6 @@
<exclude>scripts/*</exclude>
<exclude>ReadMe.txt</exclude>
<exclude>keystore.jks</exclude>
- <exclude>PDF-Over.exe</exclude>
- <exclude>PDF-Over.ini</exclude>
- <exclude>PDF-Over-Un.ini</exclude>
</excludes>
</resource>
</resources>