diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-09-30 12:03:23 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-09-30 12:03:23 +0200 |
commit | bbefc4a50e6fd189032dc4a1298ada24e7cc5595 (patch) | |
tree | 2e6646bd881ccc19e82506013d565aed5189f95c /pdf-over-commons/src/main/java/at/asit/pdfover | |
parent | 29059e0e1e69bc15eea215427df299378be931b5 (diff) | |
download | pdf-over-bbefc4a50e6fd189032dc4a1298ada24e7cc5595.tar.gz pdf-over-bbefc4a50e6fd189032dc4a1298ada24e7cc5595.tar.bz2 pdf-over-bbefc4a50e6fd189032dc4a1298ada24e7cc5595.zip |
cleanup
Diffstat (limited to 'pdf-over-commons/src/main/java/at/asit/pdfover')
-rw-r--r-- | pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java index d3864fdf..8e8188fa 100644 --- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java +++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Constants.java @@ -47,12 +47,13 @@ public class Constants { v = props.getProperty("version"); } catch (Exception e) { log.warn("Failed to load project version", e); + v = "UNKNOWN-SNAPSHOT"; } APP_VERSION = v; } /** Application name + version */ - public static final String APP_NAME_VERSION = (APP_VERSION == null ? APP_NAME : APP_NAME + " v" + APP_VERSION); + public static final String APP_NAME_VERSION = (APP_NAME + " v" + APP_VERSION); public static final String SIGNATURE_PROFILE = "SIGNATURE_PROFILE"; public static final String DEFAULT_POSTFIX = "_signed"; @@ -114,7 +115,7 @@ public class Constants { public static final int SIGNATURE_KEYBOARD_POSITIONING_OFFSET = 15; /** PDF-Over User Agent string */ - public static final String USER_AGENT_STRING = "PDF-Over " + (APP_VERSION == null ? "4.3" : APP_VERSION); + public static final String USER_AGENT_STRING = "PDF-Over " + APP_VERSION; /** Current release file */ public static final String CURRENT_RELEASE_URL = "https://updates.a-sit.at/pdf-over/Release.txt"; |