private File getFile(String path, boolean create) throws PatchApplyException { File f = new File(getRepository().getWorkTree(), path); if (create) try { File parent = f.getParentFile(); FileUtils.mkdirs(parent, true); FileUtils.createNewFile(f); } catch (IOException e) { throw new PatchApplyException(MessageFormat.format( JGitText.get().createNewFileFailed, f), e); } return f; }
private File getFile(String path, boolean create) throws PatchApplyException { File f = new File(getRepository().getWorkTree(), path); if (create) try { File parent = f.getParentFile(); FileUtils.mkdirs(parent, true); FileUtils.createNewFile(f); } catch (IOException e) { throw new PatchApplyException(MessageFormat.format( JGitText.get().createNewFileFailed, f), e); } return f; }
private File getFile(String path, boolean create) throws PatchApplyException { File f = new File(getRepository().getWorkTree(), path); if (create) try { File parent = f.getParentFile(); FileUtils.mkdirs(parent, true); FileUtils.createNewFile(f); } catch (IOException e) { throw new PatchApplyException(MessageFormat.format( JGitText.get().createNewFileFailed, f), e); } return f; }
try { if (!file.exists()) FileUtils.createNewFile(file); out = new FileOutputStream(file); out.write(getContent());
FileUtils.createNewFile(mergeBase); FileHelper.writeStringToFile(gfConfig.getDevelop(), mergeBase); reporter.endCommand();
FileUtils.createNewFile(mergeBase); FileHelper.writeStringToFile(gfConfig.getDevelop(), mergeBase); reporter.endCommand();
FileUtils.createNewFile(mergeBase); FileHelper.writeStringToFile(gfConfig.getDevelop(), mergeBase); reporter.endCommand();