1 package org.sapia.util.test; 2 3 import org.sapia.util.ApplicationStarter; 4 5 16 public class ApplicationStarterTester { 17 20 public static void main(String [] args) { 21 22 try { 23 System.out.println("\n=================================================================================================="); 24 ApplicationStarter.main(new String [] { "-asdebug", 25 "org.sapia.util.test.TestApp2", "MainServer", "config/mainServer.xml", "config/mainServer.log" }); 26 Thread.sleep(1000); 27 } catch (Exception e) { 28 e.printStackTrace(); 29 } 30 31 try { 32 System.out.println("\n=================================================================================================="); 33 ApplicationStarter.main(new String [] { "-asdebug", "-ascp", "C:\\opt\\test\\lib\\;C:\\opt\\test\\lib\\jms.jar", 34 "com.newtrade.polaris.TestApp2", "MainServer", "config/mainServer.xml", "config/mainServer.log" }); 35 Thread.sleep(1000); 36 } catch (Exception e) { 37 e.printStackTrace(); 38 } 39 40 try { 41 System.out.println("\n=================================================================================================="); 42 ApplicationStarter.main(new String [] { "-asdebug", 43 "com.newtrade.polaris.TestApp", "MainServer", "config/mainServer.xml", "config/mainServer.log" }); 44 } catch (Exception e) { 45 e.printStackTrace(); 46 try { Thread.sleep(1000); } catch (InterruptedException ie) {} 47 } 48 49 try { 50 System.out.println("\n=================================================================================================="); 51 ApplicationStarter.main(new String [] { "-asdebug", "-ascp", "C:\\opt\\test\\lib\\;C:\\opt\\test\\lib\\jms.jar", 52 "com.newtrade.polaris.TestApp", "MainServer", "config/mainServer.xml", "config/mainServer.log" }); 53 Thread.sleep(1000); 54 } catch (Exception e) { 55 e.printStackTrace(); 56 } 57 58 try { 59 System.out.println("\n=================================================================================================="); 60 ApplicationStarter.main(new String [] { "-ashelp", 61 "org.sapia.util.test.TestApp2", "MainServer", "config/mainServer.xml", "config/mainServer.log" }); 62 Thread.sleep(1000); 63 } catch (Exception e) { 64 e.printStackTrace(); 65 } 66 } 67 } 68 | Popular Tags |