Fixed support for apk without any sources.

This commit is contained in:
Ryszard Wiśniewski 2010-04-02 20:08:04 +02:00
parent 02c93c725d
commit 651f4d37d8
2 changed files with 8 additions and 0 deletions

View File

@ -196,6 +196,9 @@ public class Androlib {
public boolean buildResourcesFull(File appDir, boolean forceBuildAll,
boolean framework) throws AndrolibException {
try {
if (! new File(appDir, "res").exists()) {
return false;
}
if (! forceBuildAll) {
LOGGER.info("Checking whether resources has changed...");
}

View File

@ -132,6 +132,11 @@ final public class AndrolibResources {
public boolean detectWhetherAppIsFramework(File appDir)
throws AndrolibException {
File publicXml = new File(appDir, "res/values/public.xml");
if (! publicXml.exists()) {
return false;
}
Iterator<String> it;
try {
it = IOUtils.lineIterator(