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);
}
}
Aggregations