KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > ui > cli > setup


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.ui.cli;
15
16
17 /**
18  * Implements the setup command line interface
19  *
20  * @version $Id: setup.java,v 1.3 2006/03/19 09:44:36 anatom Exp $
21  */

22 public class setup {
23     /**
24      * Main
25      *
26      * @param args command line arguments
27      */

28     public static void main(String JavaDoc[] args) {
29         try {
30             IAdminCommand cmd = SetupCommandFactory.getCommand(args);
31
32             if (cmd != null) {
33                 cmd.execute();
34             } else {
35                 System.out.println("Usage: SETUP setdefaultbaseurl <computername> <applicationpath>");
36                 System.out.println(" Or: SETUP initializehardtokenissuing <caname>");
37             }
38         } catch (Exception JavaDoc e) {
39             System.out.println(e.getMessage());
40             //e.printStackTrace();
41
System.exit(-1);
42         }
43     }
44 }
45
46
47 //ca
48
Popular Tags