From e02af77e2cb795c3d918e8d041340d9cc110f29f Mon Sep 17 00:00:00 2001 From: fourthline Date: Mon, 21 Jul 2014 17:32:16 +0900 Subject: [PATCH] fix build number --- src/fourthline/mabiicco/AppResource.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fourthline/mabiicco/AppResource.java b/src/fourthline/mabiicco/AppResource.java index 48f0bc3a..f3010e0b 100644 --- a/src/fourthline/mabiicco/AppResource.java +++ b/src/fourthline/mabiicco/AppResource.java @@ -4,7 +4,6 @@ package fourthline.mabiicco; -import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; @@ -14,7 +13,7 @@ public class AppResource { private final static String RESOURCE_NAME = "appResource"; - private final static String BUILD_NUMBER = "build.number"; + private final static String BUILD_NUMBER = "/build.number"; private static Manifest mf; private static ResourceBundle bundle = ResourceBundle.getBundle(RESOURCE_NAME); @@ -41,7 +40,7 @@ public static String getManifestValue(String key) { public static String getBuildNumber() { try { - InputStream is = new FileInputStream(BUILD_NUMBER); + InputStream is = AppResource.class.getResourceAsStream(BUILD_NUMBER); Properties buildNumber = new Properties(); buildNumber.load(is); return buildNumber.getProperty("build.number");