summaryrefslogtreecommitdiffstats
path: root/jack/src/com/android/jack/incremental/CommonFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'jack/src/com/android/jack/incremental/CommonFilter.java')
-rw-r--r--jack/src/com/android/jack/incremental/CommonFilter.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/jack/src/com/android/jack/incremental/CommonFilter.java b/jack/src/com/android/jack/incremental/CommonFilter.java
index ff1c192..7fcaf9d 100644
--- a/jack/src/com/android/jack/incremental/CommonFilter.java
+++ b/jack/src/com/android/jack/incremental/CommonFilter.java
@@ -187,11 +187,18 @@ public abstract class CommonFilter {
String path = subFile.getPath();
if (subFile.getName().endsWith(fileExt)) {
try {
- // File contained into folder are not checked by codec
- FileOrDirectory.checkPermissions(subFile, new FileLocation(subFile), Permission.READ);
+ // Let's check the files contained in the folder since they have not checked by codec
+ FileLocation location = new FileLocation(subFile);
+ // We still need to check existence, because of non-existing symbolic link targets
+ AbstractStreamFile.check(subFile, location);
+ FileOrDirectory.checkPermissions(subFile, location, Permission.READ);
fileNames.add(path);
} catch (WrongPermissionException e) {
throw new JackUserException(e);
+ } catch (NotFileException e) {
+ throw new JackUserException(e);
+ } catch (NoSuchFileException e) {
+ throw new JackUserException(e);
}
}
}