public static PrintStream LOGSTREAM;
public static String defaultDomain;
- static {
+ public static void init() {
try {
System.err.println("jinetd starting...");
ROOT = System.getProperty("jinetd.root", null);
}
public static void main(String[] s) throws Exception {
+ init();
Root root = new Root(ROOT);
while(true) try {
if (root != null) { root.scan(); return; }
public TreeClassLoader(File root, ClassLoader parent) {
super(new URL[] { }, parent);
+ System.out.println("TreeClassLoader("+root.getAbsolutePath()+")");
this.root = root;
this.lib = new File(root.getAbsolutePath() + File.separatorChar + "lib");
}
private Vec watched = new Vec();
public void watch(File f) { watched.addElement(new Watched(f.getAbsolutePath())); }
- public void watch(String s) { watch(getAbsolutePath() + File.separatorChar + s); }
+ public void watch(String s) { watch(new File(getAbsolutePath() + File.separatorChar + s)); }
public void scan() throws IOException {
for(int i=watched.size()-1; i>=0; i--)