aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks/src/com
diff options
context:
space:
mode:
authorXavier Ducrohet <>2009-03-24 20:36:19 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 20:36:19 -0700
commite5b8de65d612a281b013ddc5739f302c0ac9fa31 (patch)
tree8c9cd7ccc4d694f3fa1efeb2decbd9d64ecf6b04 /anttasks/src/com
parenta16089de03da2371d6284f7933a104adac84a3b0 (diff)
downloadsdk-e5b8de65d612a281b013ddc5739f302c0ac9fa31.zip
sdk-e5b8de65d612a281b013ddc5739f302c0ac9fa31.tar.gz
sdk-e5b8de65d612a281b013ddc5739f302c0ac9fa31.tar.bz2
Automated import from //branches/donutburger/...@141594,141594
Diffstat (limited to 'anttasks/src/com')
-rw-r--r--anttasks/src/com/android/ant/AaptExecLoopTask.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/anttasks/src/com/android/ant/AaptExecLoopTask.java b/anttasks/src/com/android/ant/AaptExecLoopTask.java
index d2c7162..6444e4d 100644
--- a/anttasks/src/com/android/ant/AaptExecLoopTask.java
+++ b/anttasks/src/com/android/ant/AaptExecLoopTask.java
@@ -181,11 +181,14 @@ public final class AaptExecLoopTask extends Task {
task.createArg().setValue("-M");
task.createArg().setValue(mManifest);
- // resources location
- task.createArg().setValue("-S");
- task.createArg().setValue(mResources);
+ // resources location. This may not exists, and aapt doesn't like it, so we check first.
+ File res = new File(mResources);
+ if (res.isDirectory()) {
+ task.createArg().setValue("-S");
+ task.createArg().setValue(mResources);
+ }
- // assets location. this may not exists, and aapt doesn't like it, so we check first.
+ // assets location. This may not exists, and aapt doesn't like it, so we check first.
File assets = new File(mAssets);
if (assets.isDirectory()) {
task.createArg().setValue("-A");