Skip to content

Commit

Permalink
Added bridging method to work around Groovy bug not fixed until 2.5.
Browse files Browse the repository at this point in the history
- Fixed #99.
- See https://issues.apache.org/jira/browse/GROOVY-7862 .

Signed-off-by: Brett Randall <[email protected]>
  • Loading branch information
javabrett committed Dec 4, 2018
1 parent c3063f0 commit 7b4a1a1
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class JettyScannerManager extends BaseScannerManager implements ScannerMan

scanner.addListener(new BulkListener() {
void filesChanged(List<String> filenames) {
scanFilesChanged(filenames)
scanFilesChangedOverride(filenames)
}
});

Expand All @@ -46,6 +46,16 @@ final class JettyScannerManager extends BaseScannerManager implements ScannerMan
});
}

/*
* This method exists as a workaround for Groovy issue
* https://issues.apache.org/jira/browse/GROOVY-7862 which is
* fixed in Groovy 2.5.
*
* See https://github.com/gretty-gradle-plugin/gretty/issues/99 .
*/
protected void scanFilesChangedOverride(Collection<String> changedFiles) {
super.scanFilesChanged(changedFiles)
}

@Override
void startScanner() {
Expand Down

0 comments on commit 7b4a1a1

Please sign in to comment.