Skip to content

Commit

Permalink
fix build number
Browse files Browse the repository at this point in the history
  • Loading branch information
fourthline committed Jul 21, 2014
1 parent ce0b5bf commit e02af77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/fourthline/mabiicco/AppResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package fourthline.mabiicco;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
Expand All @@ -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);

Expand All @@ -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");
Expand Down

0 comments on commit e02af77

Please sign in to comment.