From 2844a40c50eff71f6091ceeb5990eea2b96d8c55 Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Tue, 3 Jul 2018 10:50:10 +0200 Subject: Constant for swt version in install helper --- pdf-over-install-helper/src/main/java/at/asit/helper/Main.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pdf-over-install-helper/src/main/java') 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); -- cgit v1.2.3