Search in sources :

Example 1 with GoServer

use of com.thoughtworks.go.server.GoServer in project gocd by gocd.

the class GoLauncher method main.

public static void main(String[] args) throws Exception {
    assertVMVersion();
    SystemEnvironment systemEnvironment = new SystemEnvironment();
    systemEnvironment.setProperty(GoConstants.USE_COMPRESSED_JAVASCRIPT, Boolean.toString(true));
    LogConfigurator logConfigurator = new LogConfigurator(DEFAULT_LOGBACK_CONFIGURATION_FILE);
    logConfigurator.initialize();
    try {
        cleanupTempFiles();
        new GoServer().go();
    } catch (Exception e) {
        System.err.println("ERROR: Failed to start Go server. Please check the logs.");
        e.printStackTrace();
        System.exit(1);
    }
}
Also used : SystemEnvironment(com.thoughtworks.go.util.SystemEnvironment) LogConfigurator(com.thoughtworks.go.logging.LogConfigurator) GoServer(com.thoughtworks.go.server.GoServer)

Aggregations

LogConfigurator (com.thoughtworks.go.logging.LogConfigurator)1 GoServer (com.thoughtworks.go.server.GoServer)1 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)1