This commit is contained in:
@@ -688,8 +688,11 @@ public final class Application {
|
||||
private void clearPersistData() {
|
||||
File cachedir = new File(home, "cache");
|
||||
if (!cachedir.isDirectory()) return;
|
||||
for (File file : cachedir.listFiles()) {
|
||||
if (file.getName().startsWith("persist-")) file.delete();
|
||||
File[] lfs = cachedir.listFiles();
|
||||
if (lfs != null) {
|
||||
for (File file : lfs) {
|
||||
if (file.getName().startsWith("persist-")) file.delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -550,8 +550,11 @@ public final class ClassFilter<T> {
|
||||
files.add(root);
|
||||
} else if (root.isDirectory()) {
|
||||
if (exclude != null && exclude.equals(root)) return;
|
||||
for (File f : root.listFiles()) {
|
||||
loadClassFiles(exclude, f, files);
|
||||
File[] lfs = root.listFiles();
|
||||
if (lfs != null) {
|
||||
for (File f : lfs) {
|
||||
loadClassFiles(exclude, f, files);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -396,8 +396,11 @@ public abstract class Server<K extends Serializable, C extends Context, R extend
|
||||
if (s.endsWith("*")) {
|
||||
File root = new File(s.substring(0, s.length() - 1));
|
||||
if (root.isDirectory()) {
|
||||
for (File f : root.listFiles()) {
|
||||
set.add(f.toURI().toURL());
|
||||
File[] lfs = root.listFiles();
|
||||
if (lfs != null) {
|
||||
for (File f : lfs) {
|
||||
set.add(f.toURI().toURL());
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user