diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-27 15:30:35 -0700 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-27 15:30:35 -0700 |
| commit | 3838ad5b07ffa2a89a57016c87cb00c472c2dba3 (patch) | |
| tree | 3beeb831a8cc5f90faae3554bf4a4cc18db9bf1b /tools/anttasks/src | |
| parent | eda65f5f60c01a6eb4f2e9e7ff79c59fe755c2f7 (diff) | |
| parent | 08f10baa11a6366642f568fbd2b1591e5345d4b2 (diff) | |
Merge commit 'korg/cupcake'
Diffstat (limited to 'tools/anttasks/src')
| -rw-r--r-- | tools/anttasks/src/com/android/ant/AaptExecLoopTask.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/anttasks/src/com/android/ant/AaptExecLoopTask.java b/tools/anttasks/src/com/android/ant/AaptExecLoopTask.java index d2c71624d..6444e4d01 100644 --- a/tools/anttasks/src/com/android/ant/AaptExecLoopTask.java +++ b/tools/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"); |
