Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InputStream in = getClass().getResourceAsStream(
- "/design-documents/documents.json");
- Path tempPath = Files.createTempFile("desdoc-", ".json");
- Files.copy(in, tempPath);
- DesignDocument design = DesignDocumentManager.fromFile(tempPath.toFile());
- Files.delete(tempPath);
Add Comment
Please, Sign In to add comment