Package org.geoserver.console

Source Code of org.geoserver.console.GeoServer

/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.console;

import org.geoserver.console.GeoServerConsole.DebugHandler;
import org.geoserver.console.GeoServerConsole.Handler;
import org.geoserver.console.GeoServerConsole.ProductionHandler;

/**
* Entrance point to {@link GeoServerConsole} application.
*
* @author Justin Deoliveira, OpenGEO
*/
public class GeoServer {

    public static void main(String[] args) throws Exception {
        // System.out.println(System.getProperty("user.dir"));
        System.out.println(System.getProperty("java.class.path"));
        Handler h = null;
        for ( int i = 0; args != null && i < args.length; i++) {
            if ( "--debug".equalsIgnoreCase( args[i] ) ) {
                h = new DebugHandler();
            }
        }
        if ( h == null ) {
            h = new ProductionHandler();
        }
        GeoServerConsole console = new GeoServerConsole( h );
    }
}
TOP

Related Classes of org.geoserver.console.GeoServer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.