diff options
author | Xavier Ducrohet <xav@android.com> | 2012-10-16 12:06:02 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2012-10-16 18:10:52 -0700 |
commit | dabcfba5bb53d8ca7c3e7508558cc060c0945b69 (patch) | |
tree | c144bd90427f27a2dc5cbe07ed828ce25b63e401 /anttasks | |
parent | 77908982268f51c9bb6ea4535daf2058999cdc10 (diff) | |
download | sdk-dabcfba5bb53d8ca7c3e7508558cc060c0945b69.zip sdk-dabcfba5bb53d8ca7c3e7508558cc060c0945b69.tar.gz sdk-dabcfba5bb53d8ca7c3e7508558cc060c0945b69.tar.bz2 |
Add support for dex force jumbo.
Change-Id: I68188063f0a44af9d38c2a47a53684a68bf346c3
Diffstat (limited to 'anttasks')
-rw-r--r-- | anttasks/src/com/android/ant/DexExecTask.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/anttasks/src/com/android/ant/DexExecTask.java b/anttasks/src/com/android/ant/DexExecTask.java index 9882fe9..3ccc87d 100644 --- a/anttasks/src/com/android/ant/DexExecTask.java +++ b/anttasks/src/com/android/ant/DexExecTask.java @@ -43,6 +43,7 @@ public class DexExecTask extends SingleDependencyTask { private String mDexedLibs; private boolean mVerbose = false; private boolean mNoLocals = false; + private boolean mForceJumbo = false; private List<Path> mPathInputs; private List<FileSet> mFileSetInputs; @@ -83,6 +84,10 @@ public class DexExecTask extends SingleDependencyTask { mNoLocals = nolocals; } + public void setForceJumbo(boolean forceJumbo) { + mForceJumbo = forceJumbo; + } + /** * Returns an object representing a nested <var>path</var> element. */ @@ -242,6 +247,10 @@ public class DexExecTask extends SingleDependencyTask { task.createArg().setValue("--verbose"); } + if (mForceJumbo) { + task.createArg().setValue("--force-jumbo"); + } + task.createArg().setValue("--output"); task.createArg().setValue(output); |