Added more info messages during decoding.

This commit is contained in:
Ryszard Wiśniewski 2010-09-08 14:24:04 +02:00
parent 98c152c6e2
commit 3de632f04c
2 changed files with 7 additions and 1 deletions

View File

@ -91,7 +91,6 @@ public class Androlib {
public void decodeResourcesFull(ExtFile apkFile, File outDir,
ResTable resTable) throws AndrolibException {
LOGGER.info("Decoding resources...");
mAndRes.decode(resTable, apkFile, outDir);
}

View File

@ -71,6 +71,7 @@ final public class AndrolibResources {
}
resTable.addPackage(pkg, true);
LOGGER.info("Loaded.");
return pkg;
}
@ -94,6 +95,7 @@ final public class AndrolibResources {
}
resTable.addPackage(pkg, false);
LOGGER.info("Loaded.");
return pkg;
}
@ -126,13 +128,18 @@ final public class AndrolibResources {
ExtMXSerializer xmlSerializer = getResXmlSerializer();
for (ResPackage pkg : resTable.listMainPackages()) {
attrDecoder.setCurrentPackage(pkg);
LOGGER.info("Decoding file-resources...");
for (ResResource res : pkg.listFiles()) {
fileDecoder.decode(res, in, out);
}
LOGGER.info("Decoding values*/* XMLs...");
for (ResValuesFile valuesFile : pkg.listValuesFiles()) {
generateValuesFile(valuesFile, out, xmlSerializer);
}
generatePublicXml(pkg, out, xmlSerializer);
LOGGER.info("Done.");
}
AndrolibException decodeError = duo.m2.getFirstError();