summaryrefslogtreecommitdiff
path: root/pdf-over-gui/pom.xml
diff options
context:
space:
mode:
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>