[automation] ScriptFileWatcher subdirectory loading upon startup no longer hardcoded to true (#2664)
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>pull/2679/head
parent
dbb1382f65
commit
89aae83b64
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue