(Server aServer)
| 197 | } |
| 198 | |
| 199 | @Override |
| 200 | public synchronized boolean store(Server aServer) { |
| 201 | StoreFileMover mover = |
| 202 | new StoreFileMover(Bootstrap.getCatalinaBase(), getServerFilename(), getRegistry().getEncoding()); |
| 203 | // Open an output writer for the new configuration file |
| 204 | try { |
| 205 | try (PrintWriter writer = mover.getWriter()) { |
| 206 | store(writer, -2, aServer); |
| 207 | } |
| 208 | mover.move(); |
| 209 | return true; |
| 210 | } catch (Exception e) { |
| 211 | log.error(sm.getString("config.storeServerError"), e); |
| 212 | } |
| 213 | return false; |
| 214 | } |
| 215 | |
| 216 | @Override |
| 217 | public synchronized boolean store(Context aContext) { |
no test coverage detected