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

Method runningOnUnix

src/main/java/gate/Gate.java:983–985  ·  view source on GitHub ↗

This method tries to guess if we are on a UNIX system. It does this by checking the value of System.getProperty("file.separator") ; if this is "/" it concludes we are on UNIX. This is obviously not a very good idea in the general case, so nothing much should be made to depend on this meth

()

Source from the content-addressed store, hash-verified

981 * opposed to <TT>gate.xml</TT>)</B>.
982 */
983 public static boolean runningOnUnix() {
984 return Strings.getFileSep().equals("/");
985 } // runningOnUnix
986
987 /**
988 * This method tries to guess if we are on a Mac OS X system. It does this

Callers 5

testConfigFileNamingMethod · 0.95
createNamesMethod · 0.80

Calls 2

getFileSepMethod · 0.95
equalsMethod · 0.65

Tested by 2

testConfigFileNamingMethod · 0.76