projects
/
org.ibex.jinetd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved to better jinetd setup
[org.ibex.jinetd.git]
/
src
/
org
/
ibex
/
jinetd
/
Root.java
diff --git
a/src/org/ibex/jinetd/Root.java
b/src/org/ibex/jinetd/Root.java
index
d8ccc36
..
9c2fa93
100644
(file)
--- a/
src/org/ibex/jinetd/Root.java
+++ b/
src/org/ibex/jinetd/Root.java
@@
-6,7
+6,7
@@
import java.net.*;
public class Root extends Loader {
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;
private final Host host;
private final Watched port;
@@
-20,6
+20,7
@@
public class Root extends Loader {
if (part.equals("host")) return host;
if (part.equals("port")) return port;
if (part.equals("LIB")) return super.slash(part);
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;
}
return null;
}
@@
-33,7
+34,7
@@
public class Root extends Loader {
Log.debug(this, "/host changed");
} else if (w.part.equals("port")) {
Log.debug(this, "/port changed");
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();
if (w.lastModifiedAtLastScan != -1) {
Log.error(this, "jinetd upgraded; bouncing the JVM....");
reboot();