MCPcopy Create free account
hub / github.com/GateNLP/gate-core / main

Method main

src/main/java/gate/Main.java:81–115  ·  view source on GitHub ↗

Main routine for GATE. Command-line arguments: -h display a short help message -d URL define URL to be a location for CREOLE resoures -i file additional initialisation file (probably called gate.xml ). Used for site-wide initialisation by the star

(String[] args)

Source from the content-addressed store, hash-verified

79 * </UL>
80 */
81 public static void main(String[] args) throws GateException {
82
83 // check we have a useable JDK
84 if(
85 System.getProperty("java.version").compareTo(Gate.getMinJdkVersion())
86 < 0
87 ) {
88 throw new GateException(
89 "GATE requires JDK " + Gate.getMinJdkVersion() + " or newer"
90 );
91 }
92
93 ThreadWarningSystem tws = new ThreadWarningSystem();
94 tws.addListener(new ThreadWarningSystem.Listener() {
95
96 final PrintStream out = System.out;
97
98 @Override
99 public void deadlockDetected(ThreadInfo inf) {
100 out.println("Deadlocked Thread:");
101 out.println("------------------");
102 out.println(inf);
103 for (StackTraceElement ste : inf.getStackTrace()) {
104 out.println("\t" + ste);
105 }
106 }
107 @Override
108 public void thresholdExceeded(ThreadInfo[] threads) { }
109 });
110
111 // process command-line options
112 processArgs(args);
113
114 runGui();
115 } // main
116
117 /** Register any CREOLE URLs that we got on the command line */
118 protected static void registerCreoleUrls() {

Callers

nothing calls this directly

Calls 6

getMinJdkVersionMethod · 0.95
addListenerMethod · 0.95
processArgsMethod · 0.95
runGuiMethod · 0.95
compareToMethod · 0.65
getPropertyMethod · 0.65

Tested by

no test coverage detected