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

Method getDefaultUserSessionFileName

src/main/java/gate/Gate.java:964–973  ·  view source on GitHub ↗

Get the default path to the user's session file, which is used unless an alternative name has been specified via system properties or #setUserSessionFile(File) @return the default user session file path.

()

Source from the content-addressed store, hash-verified

962 * @return the default user session file path.
963 */
964 public static String getDefaultUserSessionFileName() {
965 String filePrefix = "";
966 if(runningOnUnix()) filePrefix = ".";
967
968 String userSessionName =
969 System.getProperty("user.home") + Strings.getFileSep() + filePrefix
970 + GATE_DOT_SER;
971
972 return userSessionName;
973 } // getUserSessionFileName
974
975 /**
976 * This method tries to guess if we are on a UNIX system. It does this by

Callers 1

initLocalPathsMethod · 0.95

Calls 3

runningOnUnixMethod · 0.95
getFileSepMethod · 0.95
getPropertyMethod · 0.65

Tested by

no test coverage detected