1 | /**
|
---|
2 | *#########################################################################
|
---|
3 | *
|
---|
4 | * A component of the Gatherer application, part of the Greenstone digital
|
---|
5 | * library suite from the New Zealand Digital Library Project at the
|
---|
6 | * University of Waikato, New Zealand.
|
---|
7 | *
|
---|
8 | * Author: Chi-Yu Huang, Greenstone Digital Library, University of Waikato
|
---|
9 | *
|
---|
10 | * Copyright (C) 1999 New Zealand Digital Library Project
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or modify
|
---|
13 | * it under the terms of the GNU General Public License as published by
|
---|
14 | * the Free Software Foundation; either version 2 of the License, or
|
---|
15 | * (at your option) any later version.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful,
|
---|
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
20 | * GNU General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, write to the Free Software
|
---|
24 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
25 | *########################################################################
|
---|
26 | */
|
---|
27 |
|
---|
28 | // Graphical Adminstration Interface
|
---|
29 | package org.greenstone.admin;
|
---|
30 |
|
---|
31 | import java.awt.*;
|
---|
32 | import java.awt.event.*;
|
---|
33 | import java.io.*;
|
---|
34 | import java.lang.*;
|
---|
35 | import java.net.*;
|
---|
36 | import java.util.*;
|
---|
37 | import javax.swing.*;
|
---|
38 | import javax.swing.plaf.*;
|
---|
39 | import javax.swing.text.*;
|
---|
40 |
|
---|
41 | import org.greenstone.admin.GAIManager;
|
---|
42 | import org.greenstone.core.Configuration;
|
---|
43 | import org.greenstone.admin.gui.SetServerPane;
|
---|
44 |
|
---|
45 | /** Containing the top-level "core" for the GAI(Graphical Administration
|
---|
46 | * Interface) this class is the common core for the GAI application and
|
---|
47 | * applet. It first parses the command line arguments, preparing to update
|
---|
48 | * the configuration as required. Next it loads several important support
|
---|
49 | * classes such as the Configuration and Dictionary. Finally it creates the
|
---|
50 | * other important managers and sends them on their way.
|
---|
51 | * @author Chi-Yu Huang, Greenstone Digital Library, University of Waikato
|
---|
52 | * @version ###
|
---|
53 | */
|
---|
54 | public class GAI
|
---|
55 | {
|
---|
56 | public static Dimension screen_size = Toolkit.getDefaultToolkit().getScreenSize();
|
---|
57 | public static String gsdl3_path;
|
---|
58 | public static String admin_path;
|
---|
59 | public static String tomcat_file_path;
|
---|
60 | public static File build_file;
|
---|
61 | /** A public reference to the GAIManager. */
|
---|
62 | static public GAIManager ga_man;
|
---|
63 |
|
---|
64 | public GAI()
|
---|
65 | {
|
---|
66 | this.gsdl3_path = gsdl3_path;
|
---|
67 | this.admin_path = this.gsdl3_path + "/src/java/org/greenstone/admin/";
|
---|
68 | this.tomcat_file_path = this.gsdl3_path + "/comms/jakarta/tomcat/logs/";
|
---|
69 | this.build_file = new File(gsdl3_path, "build.properties");
|
---|
70 | }
|
---|
71 |
|
---|
72 | public static void main (String[] args){
|
---|
73 | gsdl3_path = args[0];
|
---|
74 | admin_path = gsdl3_path + "/src/java/org/greenstone/admin/";
|
---|
75 | new Configuration (admin_path);
|
---|
76 | GAI gai = new GAI();
|
---|
77 |
|
---|
78 | /*Check if the user want to set up their own TOMCAT/MYSQL server
|
---|
79 | * when they first time run GAI*/
|
---|
80 | GAIFirstSettingFrame first_setting = new GAIFirstSettingFrame();
|
---|
81 | }
|
---|
82 | }
|
---|