KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > test > ApplicationStarterTester


1 package org.sapia.util.test;
2
3 import org.sapia.util.ApplicationStarter;
4
5 /**
6  *
7  *
8  * @author Jean-Cedric Desrochers
9  *
10  * <dl>
11  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

16 public class ApplicationStarterTester {
17   /**
18    *
19    */

20   public static void main(String JavaDoc[] args) {
21
22     try {
23       System.out.println("\n==================================================================================================");
24       ApplicationStarter.main(new String JavaDoc[] { "-asdebug",
25                             "org.sapia.util.test.TestApp2", "MainServer", "config/mainServer.xml", "config/mainServer.log" });
26       Thread.sleep(1000);
27     } catch (Exception JavaDoc e) {
28       e.printStackTrace();
29     }
30
31     try {
32       System.out.println("\n==================================================================================================");
33       ApplicationStarter.main(new String JavaDoc[] { "-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 JavaDoc e) {
37       e.printStackTrace();
38     }
39
40     try {
41       System.out.println("\n==================================================================================================");
42       ApplicationStarter.main(new String JavaDoc[] { "-asdebug",
43                             "com.newtrade.polaris.TestApp", "MainServer", "config/mainServer.xml", "config/mainServer.log" });
44     } catch (Exception JavaDoc e) {
45       e.printStackTrace();
46       try { Thread.sleep(1000); } catch (InterruptedException JavaDoc ie) {}
47     }
48
49     try {
50       System.out.println("\n==================================================================================================");
51       ApplicationStarter.main(new String JavaDoc[] { "-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 JavaDoc e) {
55       e.printStackTrace();
56     }
57
58     try {
59       System.out.println("\n==================================================================================================");
60       ApplicationStarter.main(new String JavaDoc[] { "-ashelp",
61                             "org.sapia.util.test.TestApp2", "MainServer", "config/mainServer.xml", "config/mainServer.log" });
62       Thread.sleep(1000);
63     } catch (Exception JavaDoc e) {
64       e.printStackTrace();
65     }
66   }
67 }
68
Popular Tags