To be used by EJS version 3.47 and earlier only. It is here to make sure that the information saved matches the information read by runEjs(). @param _release String
(String _home, String _release)
| 162 | * @param _release String |
| 163 | */ |
| 164 | static public void saveInformation(String _home, String _release) { |
| 165 | try { |
| 166 | String filename = System.getProperty("user.home").replace('\\', '/'); //$NON-NLS-1$ |
| 167 | if (!filename.endsWith("/")) { //$NON-NLS-1$ |
| 168 | filename = filename + "/"; //$NON-NLS-1$ |
| 169 | } |
| 170 | filename = filename + INFO_FILE; |
| 171 | String dir = System.getProperty("user.dir"); //$NON-NLS-1$ |
| 172 | FileWriter fout = new FileWriter(filename); |
| 173 | fout.write("directory = " + dir + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ |
| 174 | fout.write("home = " + _home + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ |
| 175 | fout.write("version = " + _release + "\n"); //$NON-NLS-1$ //$NON-NLS-2$ |
| 176 | fout.close(); |
| 177 | } catch (Exception exc) { |
| 178 | exc.printStackTrace(); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * To be used by EJS version 4.0 and later only. It is here to make sure that |
nothing calls this directly
no test coverage detected