Change from ClassLoader.getSystemResourceAsStream to ClassLoader.getResourceAsStream since it is android safe.

This commit is contained in:
Kevin Ruland 2012-05-15 20:43:26 +00:00
parent a6eda10fcc
commit e1081d2df8

View File

@ -32,7 +32,7 @@ public class BuildProperties {
static {
try {
InputStream is = ClassLoader.getSystemResourceAsStream("build.properties");
InputStream is = BuildProperties.class.getClassLoader().getResourceAsStream("build.properties");
if (is == null) {
throw new MissingResourceException(
"build.properties not found, distribution built wrong" +