forgot to update Properties.java lol.

This commit is contained in:
Connor Tumbleson 2012-09-20 19:51:48 -05:00
parent dd881e21d1
commit c676ad1c60

View File

@ -39,7 +39,7 @@ public class ApktoolProperties {
} }
private static void loadProps() { private static void loadProps() {
InputStream in = main.class.getResourceAsStream("/properties/apktool.properties"); InputStream in = ApktoolProperties.class.getResourceAsStream("/properties/apktool.properties");
sProps = new Properties(); sProps = new Properties();
try { try {
sProps.load(in); sProps.load(in);
@ -48,7 +48,7 @@ public class ApktoolProperties {
LOGGER.warning("Can't load properties."); LOGGER.warning("Can't load properties.");
} }
InputStream templateStream = main.class.getClassLoader().getResourceAsStream("/properties/baksmali.properties"); InputStream templateStream = ApktoolProperties.class.getResourceAsStream("/properties/baksmali.properties");
Properties properties = new Properties(); Properties properties = new Properties();
String version = "(unknown)"; String version = "(unknown)";
try { try {
@ -57,7 +57,7 @@ public class ApktoolProperties {
} catch (IOException ex) { } catch (IOException ex) {
} }
sProps.put("baksmaliVersion", version); sProps.put("baksmaliVersion", version);
templateStream = main.class.getClassLoader().getResourceAsStream("/properties/smali.properties"); templateStream = ApktoolProperties.class.getResourceAsStream("/properties/smali.properties");
properties = new Properties(); properties = new Properties();
version = "(unknown)"; version = "(unknown)";
try { try {