Home | History | Annotate | Download | only in ant

Lines Matching full:file

5  * you may not use this file except in compliance with the License.
19 import java.io.File;
24 private final File mFile;
32 public InputPath(File file) {
33 this(file, null);
36 public InputPath(File file, Set<String> extensionsToCheck) {
37 if (file == null) {
38 throw new RuntimeException("File in InputPath(File) can't be null");
40 mFile = file;
44 public File getFile() {
54 * @param file the file to check
55 * @return true if the file must be checked for modification.
57 public boolean checksForModification(File file) {
58 if (ignores(file)) {
63 mTouchedExtensions.contains(getExtension(file)) == false) {
71 * Returns whether the InputPath ignores a given file or folder. If it is ignored then
72 * the file (or folder) is not checked for any event (modification/add/delete).
74 * @param file the file or folder to check
75 * @return true if the file or folder are ignored.
77 public boolean ignores(File file) {
79 return file.getName().startsWith(".") == false;
83 * Gets the extension (if present) on a file by looking at the filename
84 * @param file the file to get the extension from
88 protected static String getExtension(File file) {
89 return getExtension(file.getName());
93 * Gets the extension (if present) on a file by looking at the filename