We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6d4cf commit 33ff09fCopy full SHA for 33ff09f
grails-core/src/main/groovy/org/codehaus/groovy/grails/compiler/GrailsProjectWatcher.java
@@ -146,8 +146,9 @@ public void onChange(File file) {
146
147
public void onNew(File file) {
148
LOG.info("File [" + file + "] added. Applying changes to application.");
149
- if (!file.getName().toLowerCase().endsWith(".properties")) {
150
- // only sleep for source files, not i18n files
+ String fileName = file.getName();
+ if (fileName.endsWith(".groovy") || fileName.endsWith(".java")) {
151
+ // only wait a bit for source files to give the user a chance to make the class valid
152
sleep(5000);
153
}
154
compileIfSource(file);
0 commit comments