[automation] ScriptFileWatcher subdirectory loading upon startup no longer hardcoded to true (#2664)

Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
pull/2679/head
Jonathan Gilbert 2022-01-08 09:19:38 +00:00 committed by GitHub
parent dbb1382f65
commit 89aae83b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -137,11 +137,13 @@ public class ScriptFileWatcher extends AbstractWatchService implements ReadyServ
if (file.exists()) { if (file.exists()) {
File[] files = file.listFiles(); File[] files = file.listFiles();
if (files != null) { if (files != null) {
if (watchSubDirectories()) {
for (File f : files) { for (File f : files) {
if (!f.isHidden()) { if (!f.isHidden()) {
importResources(f); importResources(f);
} }
} }
}
} else { } else {
try { try {
URL url = file.toURI().toURL(); URL url = file.toURI().toURL();