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