예제 #1
0
파일: JFinal.java 프로젝트: jerryou/goja
 /**
  * Run JFinal Server with Debug Configurations or Run Configurations in Eclipse JavaEE args
  * example: WebRoot 80 / 5
  */
 public static void main(String[] args) {
   if (args == null || args.length == 0) {
     server = ServerFactory.getServer();
     server.start();
   } else {
     String webAppDir = args[0];
     int port = Integer.parseInt(args[1]);
     String context = args[2];
     int scanIntervalSeconds = Integer.parseInt(args[3]);
     server = ServerFactory.getServer(webAppDir, port, context, scanIntervalSeconds);
     server.start();
   }
 }
예제 #2
0
파일: JFinal.java 프로젝트: jerryou/goja
 public static void start(String webAppDir, int port, String context, int scanIntervalSeconds) {
   server = ServerFactory.getServer(webAppDir, port, context, scanIntervalSeconds);
   server.start();
 }
예제 #3
0
파일: JFinal.java 프로젝트: jerryou/goja
 public static void stop() {
   server.stop();
 }
예제 #4
0
파일: JFinal.java 프로젝트: jerryou/goja
 public static void start() {
   server = ServerFactory.getServer();
   server.start();
 }