diff options
Diffstat (limited to 'anttasks/src/com/android/ant/AaptExecLoopTask.java')
-rw-r--r-- | anttasks/src/com/android/ant/AaptExecLoopTask.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/anttasks/src/com/android/ant/AaptExecLoopTask.java b/anttasks/src/com/android/ant/AaptExecLoopTask.java index aac61b1..6c98cbd 100644 --- a/anttasks/src/com/android/ant/AaptExecLoopTask.java +++ b/anttasks/src/com/android/ant/AaptExecLoopTask.java @@ -76,6 +76,7 @@ public final class AaptExecLoopTask extends BaseTask { private boolean mForce = true; // true due to legacy reasons private boolean mDebug = false; private boolean mVerbose = false; + private boolean mUseCrunchCache = false; private int mVersionCode = 0; private String mManifest; private ArrayList<Path> mResources; @@ -119,6 +120,14 @@ public final class AaptExecLoopTask extends BaseTask { mVerbose = verbose; } + /** + * Sets the value of the "usecrunchcache" attribute + * @param usecrunch whether to use the crunch cache. + */ + public void setNoCrunch(boolean nocrunch) { + mUseCrunchCache = nocrunch; + } + public void setVersioncode(String versionCode) { if (versionCode.length() > 0) { try { @@ -346,6 +355,11 @@ public final class AaptExecLoopTask extends BaseTask { // aapt command. Only "package" is supported at this time really. task.createArg().setValue(mCommand); + // No crunch flag + if (mUseCrunchCache) { + task.createArg().setValue("--no-crunch"); + } + // force flag if (mForce) { task.createArg().setValue("-f"); |