summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2018-07-03 10:50:10 +0200
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2018-07-03 10:50:10 +0200
commit2844a40c50eff71f6091ceeb5990eea2b96d8c55 (patch)
treeec94e99bfce037d3295c06d637ce147739cad595
parentca4df3e394ed8adb481c194b2bcae822a012115b (diff)
downloadpdf-over-2844a40c50eff71f6091ceeb5990eea2b96d8c55.tar.gz
pdf-over-2844a40c50eff71f6091ceeb5990eea2b96d8c55.tar.bz2
pdf-over-2844a40c50eff71f6091ceeb5990eea2b96d8c55.zip
Constant for swt version in install helper
-rw-r--r--pdf-over-gui/pom.xml2
-rw-r--r--pdf-over-install-helper/src/main/java/at/asit/helper/Main.java8
2 files changed, 6 insertions, 4 deletions
diff --git a/pdf-over-gui/pom.xml b/pdf-over-gui/pom.xml
index 243b055b..45c2b60c 100644
--- a/pdf-over-gui/pom.xml
+++ b/pdf-over-gui/pom.xml
@@ -429,7 +429,7 @@
<project.maindir>${project.basedir}/..</project.maindir>
<target.name>windows</target.name>
<staging.dir>${project.build.directory}/staging/${target.name}</staging.dir>
- <swt.version>4.6.1</swt.version>
+ <swt.version>4.8</swt.version>
</properties>
<profiles>
diff --git a/pdf-over-install-helper/src/main/java/at/asit/helper/Main.java b/pdf-over-install-helper/src/main/java/at/asit/helper/Main.java
index d9156a92..f548ced5 100644
--- a/pdf-over-install-helper/src/main/java/at/asit/helper/Main.java
+++ b/pdf-over-install-helper/src/main/java/at/asit/helper/Main.java
@@ -22,6 +22,8 @@ import org.apache.commons.io.FileUtils;
*/
public class Main {
+ private final static String SWT_VERSION = "4.8";
+
public static void main(String[] args) {
System.out.println("start post install task");
@@ -80,13 +82,13 @@ public class Main {
String swtTargetLibName;
if (os.contains("win")) {
- swtTargetLibName = "org.eclipse.swt.win32.win32.x86-4.3.2.jar";
+ swtTargetLibName = "org.eclipse.swt.win32.win32.x86-" + SWT_VERSION + ".jar";
}
else if (os.contains("mac")) {
- swtTargetLibName = "org.eclipse.swt.cocoa.macosx-4.3.2.jar";
+ swtTargetLibName = "org.eclipse.swt.cocoa.macosx-" + SWT_VERSION + ".jar";
}
else if (os.contains("linux") || os.contains("nix")) {
- swtTargetLibName = "org.eclipse.swt.gtk.linux.x86-4.3.2.jar";
+ swtTargetLibName = "org.eclipse.swt.gtk.linux.x86-" + SWT_VERSION + ".jar";
}
else {
throw new SWTLoadFailedException("Unknown OS: " + os);