From 823751ad89497eddc5ed2e76d3be63dcc0c357b8 Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Wed, 21 Mar 2018 16:35:44 +0100 Subject: postinstall scripts changed, error message --- pdf-over-gui/pom.xml | 20 ++++++++-------- .../src/main/java/at/asit/pdfover/gui/Main.java | 14 ++++++++++- pdf-over-gui/src/main/resources/izpack/install.xml | 4 ++-- .../main/resources/scripts/postInstall_linux.sh | 2 +- .../src/main/resources/scripts/postInstall_win.bat | 2 +- pdf-over-install-helper/pom.xml | 27 +++++++++++----------- pdf-over-signer/pdf-over-sigpdfas3/pom.xml | 2 +- 7 files changed, 42 insertions(+), 29 deletions(-) diff --git a/pdf-over-gui/pom.xml b/pdf-over-gui/pom.xml index 5493566f..788d3afc 100644 --- a/pdf-over-gui/pom.xml +++ b/pdf-over-gui/pom.xml @@ -168,15 +168,15 @@ ${staging.dir}/lib-swt swt-${target.name}-64.jar - - - - - - - - - + + at.a-sit + pdf-over-install-helper + 1.0.0 + jar + true + ${staging.dir}/lib + pdf-over-install-helper-1.0.0.jar + @@ -619,7 +619,7 @@ org.apache.maven.plugins maven-jarsigner-plugin - 1.2 + 1.4 ${ks-file} a-sit-3 diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java index 31128423..9cf917bd 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java @@ -20,10 +20,13 @@ import java.io.File; import java.io.IOException; import java.net.URL; +import javax.swing.JOptionPane; + import org.apache.log4j.PropertyConfigurator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import at.asit.pdfover.gui.utils.Messages; import at.asit.pdfover.gui.workflow.StateMachineImpl; /** @@ -54,6 +57,7 @@ public class Main { // } // log.info("===== Starting " + Constants.APP_NAME_VERSION + " ====="); //$NON-NLS-1$ //$NON-NLS-2$ + try { File configDir = new File(Constants.CONFIG_DIRECTORY); if (!configDir.exists()) { @@ -76,7 +80,15 @@ public class Main { log.debug("Ended stateMachine ..."); //$NON-NLS-1$ - + } + catch (Throwable e) { + + log.error("Error wrong Java Architecture, please re-install pdf-over "); //$NON-NLS-1$ + log.error(e.getMessage()); + JOptionPane.showMessageDialog(null, + "Invalid Java Architecture! Please re-install the latest version of PDF-Over", //$NON-NLS-1$ + null, JOptionPane.ERROR_MESSAGE); + } // Workaround for remaining AWT-Shutdown thread on OSX System.exit(0); diff --git a/pdf-over-gui/src/main/resources/izpack/install.xml b/pdf-over-gui/src/main/resources/izpack/install.xml index cea5d66b..40fcb820 100644 --- a/pdf-over-gui/src/main/resources/izpack/install.xml +++ b/pdf-over-gui/src/main/resources/izpack/install.xml @@ -34,7 +34,7 @@ - + @@ -68,7 +68,7 @@ - + pdf-over 4.1.17-SNAPSHOT - pdf-over-install-helper 1.0.0 @@ -35,26 +34,28 @@ lines,vars,source - - - - - - - - - - - + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + prepare-package + + copy-dependencies + + + + + org.apache.maven.plugins maven-jar-plugin + true at.asit.helper.Main - false diff --git a/pdf-over-signer/pdf-over-sigpdfas3/pom.xml b/pdf-over-signer/pdf-over-sigpdfas3/pom.xml index 8cc11a48..663a2cfd 100644 --- a/pdf-over-signer/pdf-over-sigpdfas3/pom.xml +++ b/pdf-over-signer/pdf-over-sigpdfas3/pom.xml @@ -4,7 +4,7 @@ pdf-over-signer at.a-sit 4.1.5-SNAPSHOT - .. + pdf-over-sigpdfas3 PDF-Over PDF-AS Signer -- cgit v1.2.3