public class Root extends Loader {
- public static String root = System.getProperty("jinetd.root", "/jinetd");
+ public static String root = System.getProperty("jinetd.root", null);
private final Host host;
private final Watched port;
if (part.equals("host")) return host;
if (part.equals("port")) return port;
if (part.equals("LIB")) return super.slash(part);
+ if (part.endsWith(".jar")) return super.slash(part);
return null;
}
Log.debug(this, "/host changed");
} else if (w.part.equals("port")) {
Log.debug(this, "/port changed");
- } else if (w.getAbsolutePath().startsWith(Root.root + "/LIB/")) {
+ } else if (w.getAbsolutePath().endsWith(".jar")) {
if (w.lastModifiedAtLastScan != -1) {
Log.error(this, "jinetd upgraded; bouncing the JVM....");
reboot();