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.
()
| 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 |
no test coverage detected