private void writeDebugFile() throws IOException { Path debugPath = bimServer.getHomeDir().resolve("debug"); if (!Files.exists(debugPath)) { Files.createDirectories(debugPath); } Path folder = debugPath.resolve(debugIdentifier); if (!Files.exists(folder)) { Files.createDirectories(folder); } Path file = folder.resolve("generationreport.html"); FileUtils.writeStringToFile(file.toFile(), report.toHtml()); }
@Override public String getServerLog() throws ServerException, UserException { requireAdminAuthenticationAndRunningServer(); try { return FileUtils.readFileToString(getBimServer().getHomeDir().resolve("logs/bimserver.log").toFile()); } catch (IOException e) { LOGGER.error("", e); throw new ServerException(e); } }
private synchronized void writeDebugFile(byte[] bytes, boolean error, Map<Integer, HashMapVirtualObject> notFoundObjects) throws FileNotFoundException, IOException { boolean debug = true; if (debug) { Path debugPath = this.streamingGeometryGenerator.bimServer.getHomeDir().resolve("debug"); if (!Files.exists(debugPath)) { Files.createDirectories(debugPath);
username = user.getName(); userUsername = user.getUsername(); Path homeDirIncoming = getBimServer().getHomeDir().resolve("incoming"); if (!Files.isDirectory(homeDirIncoming)) { Files.createDirectory(homeDirIncoming);
username = user.getName(); userUsername = user.getUsername(); Path homeDirIncoming = getBimServer().getHomeDir().resolve("incoming"); if (!Files.isDirectory(homeDirIncoming)) { Files.createDirectory(homeDirIncoming);
Path homeDirIncoming = getBimServer().getHomeDir().resolve("incoming"); Path userDirIncoming = homeDirIncoming.resolve(userUsername); if (!Files.exists(userDirIncoming)) {
Path homeDirIncoming = getBimServer().getHomeDir().resolve("incoming"); Path userDirIncoming = homeDirIncoming.resolve(userUsername); if (!Files.exists(userDirIncoming)) {
server.addConnector(socketConnector); context = new WebAppContext(server, "", "/"); context.setTempDirectory(bimServer.getHomeDir().resolve("jettytmp").toFile());