From: Wolfgang M. M. <wol...@us...> - 2004-09-12 19:49:34
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20572/src/org/exist Modified Files: Server.java Log Message: Added shutdown method (for the remote junit test cases to work). Index: Server.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/Server.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Server.java 16 Feb 2004 14:12:23 -0000 1.8 --- Server.java 12 Sep 2004 19:49:25 -0000 1.9 *************** *** 149,152 **** --- 149,162 ---- } + public static void shutdown() { + System.err.println("Shutdown ..."); + webServer.shutdown(); + http.shutdown(); + try { + http.join(); + } catch (InterruptedException e) { + } + } + private static void printHelp() { System.out.println("Usage: java " + Server.class.getName() + " [options]"); |