From 96fdea340d9f75cabbbe63f995987b3190e5a323 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 7 Mar 2012 14:06:10 +0000 Subject: [PATCH] * automatically hardcode build revision into each release --- build.xml | 6 ++++++ source/net/sourceforge/filebot/Settings.java | 6 +++++- source/net/sourceforge/filebot/Settings.properties | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/build.xml b/build.xml index 4e2c471c..2a2ec2f1 100644 --- a/build.xml +++ b/build.xml @@ -357,6 +357,12 @@ + + + + + + diff --git a/source/net/sourceforge/filebot/Settings.java b/source/net/sourceforge/filebot/Settings.java index 772765b6..510ccfdb 100644 --- a/source/net/sourceforge/filebot/Settings.java +++ b/source/net/sourceforge/filebot/Settings.java @@ -31,7 +31,11 @@ public final class Settings { public static int getApplicationRevisionNumber() { - return Integer.parseInt(getApplicationProperty("application.revision")); + try { + return Integer.parseInt(getApplicationProperty("application.revision")); + } catch (Exception e) { + return 0; + } } diff --git a/source/net/sourceforge/filebot/Settings.properties b/source/net/sourceforge/filebot/Settings.properties index 921dd22c..85d9f359 100644 --- a/source/net/sourceforge/filebot/Settings.properties +++ b/source/net/sourceforge/filebot/Settings.properties @@ -1,7 +1,7 @@ # application settings application.name: FileBot application.version: 2.5 -application.revision: 905 +application.revision: @{svn.revision} # application updates update.url = http://filebot.sourceforge.net/update.xml