(byte[] buffer)
| 508 | } |
| 509 | |
| 510 | private void extractConfDir(byte[] buffer) throws IOException { |
| 511 | copyResource(rootDirectory, false, buffer, "conf/date.formats", log); |
| 512 | try { |
| 513 | copyResource(rootDirectory, true, buffer, "conf/mime.types", log); |
| 514 | } catch (IOException exception) { |
| 515 | // conf can be read-only, this is not critical |
| 516 | if (exception.getMessage() == null || (!exception.getMessage().contains("Read-only file system") && !exception.getMessage().contains("Permission denied"))) { |
| 517 | throw exception; |
| 518 | } |
| 519 | } |
| 520 | copyResource(rootDirectory, false, buffer, "conf/server.conf", log); |
| 521 | copyLogConfResource(buffer); |
| 522 | } |
| 523 | |
| 524 | private void extractSite0(String publicDir, byte[] buffer, String thisVersion) throws IOException { |
| 525 | try (final InputStream is = ServerMain.class.getResourceAsStream(PUBLIC_ZIP)) { |
no test coverage detected