diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-09-10 15:53:38 -0400 |
---|---|---|
committer | Piotr Gurgul <pgurgul@google.com> | 2009-09-14 14:44:54 -0700 |
commit | d1dfc9a741536af8fcd901d8b70d934aff05f0e5 (patch) | |
tree | 68e18222b4c3bda88c9c693d9fc956e9d5b4bb1e /anttasks/src/com/android | |
parent | e0c7960c38d4e72dcc4f98f24d089b9399ef6f25 (diff) | |
download | sdk-d1dfc9a741536af8fcd901d8b70d934aff05f0e5.zip sdk-d1dfc9a741536af8fcd901d8b70d934aff05f0e5.tar.gz sdk-d1dfc9a741536af8fcd901d8b70d934aff05f0e5.tar.bz2 |
Add <jarfile> tag to ApkBuilder ant task
ApkBuilder ant task accepts now the new tag - <jarfile>, used for passing
emma_device.jar to ApkBuilder.
Change-Id: I1757d265609406bc06da370ab0204018a4c8fc4d
Diffstat (limited to 'anttasks/src/com/android')
-rw-r--r-- | anttasks/src/com/android/ant/ApkBuilderTask.java | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/anttasks/src/com/android/ant/ApkBuilderTask.java b/anttasks/src/com/android/ant/ApkBuilderTask.java index 18a0191..a7ee02b 100644 --- a/anttasks/src/com/android/ant/ApkBuilderTask.java +++ b/anttasks/src/com/android/ant/ApkBuilderTask.java @@ -68,7 +68,8 @@ public class ApkBuilderTask extends Task { private final ArrayList<Value> mZipList = new ArrayList<Value>(); private final ArrayList<Value> mFileList = new ArrayList<Value>(); private final ArrayList<Value> mSourceList = new ArrayList<Value>(); - private final ArrayList<Value> mJarList = new ArrayList<Value>(); + private final ArrayList<Value> mJarfolderList = new ArrayList<Value>(); + private final ArrayList<Value> mJarfileList = new ArrayList<Value>(); private final ArrayList<Value> mNativeList = new ArrayList<Value>(); private final ArrayList<FileInputStream> mZipArchives = new ArrayList<FileInputStream>(); @@ -141,7 +142,16 @@ public class ApkBuilderTask extends Task { */ public Object createJarfolder() { Value file = new Value(); - mJarList.add(file); + mJarfolderList.add(file); + return file; + } + + /** + * Returns an object representing a nested <var>jarfile</var> element. + */ + public Object createJarfile() { + Value file = new Value(); + mJarfileList.add(file); return file; } @@ -183,10 +193,15 @@ public class ApkBuilderTask extends Task { } // now go through the list of jar folders. - for (Value v : mJarList) { + for (Value v : mJarfolderList) { ApkBuilderImpl.processJarFolder(v.mPath, mResourcesJars); } + // now go through the list of jar files. + for (Value v : mJarfileList) { + ApkBuilderImpl.processJarFile(v.mPath, mResourcesJars); + } + // now the native lib folder. for (Value v : mNativeList) { String parameter = v.mPath; |