aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks/src/com/android/ant/DexExecTask.java
diff options
context:
space:
mode:
Diffstat (limited to 'anttasks/src/com/android/ant/DexExecTask.java')
-rw-r--r--anttasks/src/com/android/ant/DexExecTask.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/anttasks/src/com/android/ant/DexExecTask.java b/anttasks/src/com/android/ant/DexExecTask.java
index 182ef84..e4296b2 100644
--- a/anttasks/src/com/android/ant/DexExecTask.java
+++ b/anttasks/src/com/android/ant/DexExecTask.java
@@ -16,6 +16,8 @@
package com.android.ant;
+import com.android.ant.DependencyGraph.InputPath;
+
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.taskdefs.ExecTask;
import org.apache.tools.ant.types.FileSet;
@@ -106,11 +108,11 @@ public class DexExecTask extends BaseTask {
public void execute() throws BuildException {
// get all input paths
- List<File> inputPaths = new ArrayList<File>();
+ List<File> paths = new ArrayList<File>();
if (mPathInputs != null) {
for (Path pathList : mPathInputs) {
for (String path : pathList.list()) {
- inputPaths.add(new File(path));
+ paths.add(new File(path));
}
}
}
@@ -120,7 +122,7 @@ public class DexExecTask extends BaseTask {
Iterator<?> iter = fs.iterator();
while (iter.hasNext()) {
FileResource fr = (FileResource) iter.next();
- inputPaths.add(fr.getFile());
+ paths.add(fr.getFile());
}
}
}
@@ -128,6 +130,9 @@ public class DexExecTask extends BaseTask {
// figure out the path to the dependency file.
String depFile = mOutput + ".d";
+ // get InputPath with no extension restrictions
+ List<InputPath> inputPaths = getInputPaths(paths, null /*extensionsToCheck*/);
+
if (initDependencies(depFile, inputPaths) && dependenciesHaveChanged() == false) {
System.out.println(
"No new compiled code. No need to convert bytecode to dalvik format.");
@@ -158,7 +163,7 @@ public class DexExecTask extends BaseTask {
task.createArg().setValue(mOutput);
- for (File f :inputPaths) {
+ for (File f :paths) {
task.createArg().setValue(f.getAbsolutePath());
}
@@ -166,7 +171,7 @@ public class DexExecTask extends BaseTask {
task.execute();
// generate the dependency file.
- generateDependencyFile(depFile, inputPaths, mOutput);
+ generateDependencyFile(depFile, paths, mOutput);
}
@Override