Skip to content

Commit 8daadf2

Browse files
committed
watchedResources did not work in Plugin, change events were not propagated to the Plugin.
This was because changes were not picked up by the change watcher thread.
1 parent 7694efc commit 8daadf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grails-core/src/main/groovy/grails/boot/GrailsApp.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ class GrailsApp extends SpringApplication {
223223
recompile(f, compilerConfig, location)
224224
if(newFiles.contains(f)) {
225225
newFiles.remove(f)
226-
pluginManager.informOfFileChange(f)
227226
}
227+
pluginManager.informOfFileChange(f)
228228
sleep 1000
229229
}
230230
}
@@ -241,8 +241,8 @@ class GrailsApp extends SpringApplication {
241241
recompile(changedFile, compilerConfig, location)
242242
if(newFiles.contains(changedFile)) {
243243
newFiles.remove(changedFile)
244-
pluginManager.informOfFileChange(changedFile)
245244
}
245+
pluginManager.informOfFileChange(changedFile)
246246
}
247247
}
248248

0 commit comments

Comments
 (0)