aboutsummaryrefslogtreecommitdiffstats
path: root/anttasks/src/com/android/ant/AidlExecTask.java
diff options
context:
space:
mode:
Diffstat (limited to 'anttasks/src/com/android/ant/AidlExecTask.java')
-rw-r--r--anttasks/src/com/android/ant/AidlExecTask.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/anttasks/src/com/android/ant/AidlExecTask.java b/anttasks/src/com/android/ant/AidlExecTask.java
index 98cac9b..1fd5a61 100644
--- a/anttasks/src/com/android/ant/AidlExecTask.java
+++ b/anttasks/src/com/android/ant/AidlExecTask.java
@@ -114,8 +114,7 @@ public class AidlExecTask extends Task {
DependencyGraph graph = new DependencyGraph(depFile, null /*watchPaths*/);
// get the source file. it's the first item in the pre-reqs
- List<File> preReqs = graph.getPrereqs();
- File sourceFile = preReqs.get(0);
+ File sourceFile = graph.getFirstPrereq();
String sourceFilePath = sourceFile.getAbsolutePath();
// The gen folder may contain other dependency files not generated by aidl.
@@ -126,7 +125,7 @@ public class AidlExecTask extends Task {
if (sourceFiles.remove(sourceFilePath) == false) {
// looks like the source file does not exist anymore!
// we'll have to remove the output!
- List<File> outputFiles = graph.getTargets();
+ Set<File> outputFiles = graph.getTargets();
toRemove.addAll(outputFiles);
// also need to remove the dep file.