private void copyResource(File dir, String path, Resource resource) throws Exception { File to = IO.getBasedFile(dir, path); IO.mkdirs(to.getParentFile()); IO.copy(resource.openInputStream(), to); }
private void copyResource(File dir, String path, Resource resource) throws Exception { File to = IO.getBasedFile(dir, path); IO.mkdirs(to.getParentFile()); IO.copy(resource.openInputStream(), to); }
File file = IO.getBasedFile(dir, manifestName); IO.mkdirs(file.getParentFile()); try (OutputStream fout = IO.outputStream(file)) {
File file = IO.getBasedFile(dir, manifestName); IO.mkdirs(file.getParentFile()); try (OutputStream fout = IO.outputStream(file)) {