aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks/src
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-01-20 14:23:28 -0800
committerXavier Ducrohet <xav@android.com>2010-01-20 14:23:28 -0800
commit9f11429c74555ae7ea45750f2ea878dda5e42b60 (patch)
treedcf6471e32ea37a89e975e32467f13bad1a1bb48 /anttasks/src
parentd1e2dff8f01eab635e6c1ca0e7329b871c10c99f (diff)
downloadsdk-9f11429c74555ae7ea45750f2ea878dda5e42b60.zip
sdk-9f11429c74555ae7ea45750f2ea878dda5e42b60.tar.gz
sdk-9f11429c74555ae7ea45750f2ea878dda5e42b60.tar.bz2
Fix issue with absolute path in -nf parameter of apkbuilder.
Bug: 1607862 Change-Id: I7fecc99fe7319f566d2d78ccc82c73d86067db51
Diffstat (limited to 'anttasks/src')
-rw-r--r--anttasks/src/com/android/ant/ApkBuilderTask.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/anttasks/src/com/android/ant/ApkBuilderTask.java b/anttasks/src/com/android/ant/ApkBuilderTask.java
index a7ee02b..85a6445 100644
--- a/anttasks/src/com/android/ant/ApkBuilderTask.java
+++ b/anttasks/src/com/android/ant/ApkBuilderTask.java
@@ -189,17 +189,17 @@ public class ApkBuilderTask extends Task {
// now go through the list of file to directly add the to the list.
for (Value v : mSourceList) {
- ApkBuilderImpl.processSourceFolderForResource(v.mPath, mJavaResources);
+ ApkBuilderImpl.processSourceFolderForResource(new File(v.mPath), mJavaResources);
}
// now go through the list of jar folders.
for (Value v : mJarfolderList) {
- ApkBuilderImpl.processJarFolder(v.mPath, mResourcesJars);
+ ApkBuilderImpl.processJar(new File(v.mPath), mResourcesJars);
}
// now go through the list of jar files.
for (Value v : mJarfileList) {
- ApkBuilderImpl.processJarFile(v.mPath, mResourcesJars);
+ ApkBuilderImpl.processJar(new File(v.mPath), mResourcesJars);
}
// now the native lib folder.
@@ -207,13 +207,7 @@ public class ApkBuilderTask extends Task {
String parameter = v.mPath;
File f = new File(parameter);
- // compute the offset to get the relative path
- int offset = parameter.length();
- if (parameter.endsWith(File.separator) == false) {
- offset++;
- }
-
- ApkBuilderImpl.processNativeFolder(offset, f, mNativeLibraries);
+ ApkBuilderImpl.processNativeFolder(f, mNativeLibraries);
}
// create the Path item that will contain all the generated APKs