From 78c89f931135c11c45f26590ea5ae29577bced85 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Wed, 28 Sep 2011 18:26:54 -0700 Subject: Also process and cache the png files in libraries. The png in the libraries were not processed by the crunch step. Because aapt never processes png files anymore (relying on the crunch step to do it), the png files in libraries were never processed. While this is less a problem for standard png files, this completely breaks 9-patches that must be processed to actually behaves as 9-patch. Change-Id: I0a1fe14ea34f6d36a368b456494410945afc3c44 --- anttasks/src/com/android/ant/NewSetupTask.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'anttasks/src/com/android/ant/NewSetupTask.java') diff --git a/anttasks/src/com/android/ant/NewSetupTask.java b/anttasks/src/com/android/ant/NewSetupTask.java index f6ba986..165ea08 100644 --- a/anttasks/src/com/android/ant/NewSetupTask.java +++ b/anttasks/src/com/android/ant/NewSetupTask.java @@ -465,7 +465,10 @@ public class NewSetupTask extends Task { PathElement element = rootPath.createPathElement(); element.setPath(libRootPath); - // get the res path. Always $PROJECT/res + // get the res path. Always $PROJECT/res as well as the crunch cache. + element = resPath.createPathElement(); + element.setPath(libRootPath + "/" + SdkConstants.FD_OUTPUT + + "/" + SdkConstants.FD_RES); element = resPath.createPathElement(); element.setPath(libRootPath + "/" + SdkConstants.FD_RESOURCES); -- cgit v1.1