Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

attempted fix for GRAILS-8539 "Creating of vim swp files impacting re…

…loading"
  • Loading branch information...
commit c201492dfa47419356fbfea2031d22755ea61fe9 1 parent 1db263b
@graemerocher graemerocher authored
View
4 grails-core/src/main/groovy/org/codehaus/groovy/grails/compiler/DirectoryWatcher.java
@@ -185,7 +185,7 @@ private void cacheFilesForDirectory(File directory, Collection<String> fileExten
}
for (File file : files) {
- if (file.isDirectory()) {
+ if (file.isDirectory() && !file.isHidden()) {
if(!SVN_DIR_NAME.equals(file.getName())) {
cacheFilesForDirectory(file, fileExtensions, fireEvent);
}
@@ -221,6 +221,6 @@ private boolean isValidFileToMonitor(File file, Collection<String> fileExtension
String name = file.getName();
String path = file.getAbsolutePath();
boolean isSvnFile = path.indexOf(File.separator + SVN_DIR_NAME + File.separator) > 0;
- return !isSvnFile && (fileExtensions.contains("*") || fileExtensions.contains(StringUtils.getFilenameExtension(name)));
+ return !isSvnFile && !file.isHidden() && !file.getName().startsWith(".") && (fileExtensions.contains("*") || fileExtensions.contains(StringUtils.getFilenameExtension(name)));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.