public OutputStream getReportFileForWriting() throws SVNException { if (myReportOS == null) { myReportOS = SVNFileUtil.openFileForWriting(myReportFile); } return myReportOS; }
public OutputStream getReportFileForWriting() throws SVNException { if (myReportOS == null) { myReportOS = SVNFileUtil.openFileForWriting(myReportFile); } return myReportOS; }
public OutputStream getReportFileForWriting() throws SVNException { if (myReportOS == null) { myReportOS = SVNFileUtil.openFileForWriting(myReportFile); } return myReportOS; }
public OutputStream getReportFileForWriting() throws SVNException { if (myReportOS == null) { myReportOS = SVNFileUtil.openFileForWriting(myReportFile); } return myReportOS; }
public void applyTextDelta(String path, String baseChecksum) throws SVNException { assert !currentFile.writing; currentFile.writing = true; svnDeltaProcessor.applyTextDelta(SVNFileUtil.DUMMY_IN, SVNFileUtil.openFileForWriting(currentFile.localAbsPath), true); }
public static void createFormatFile(File adminDir) throws SVNException { OutputStream os = null; try { os = SVNFileUtil.openFileForWriting(new File(adminDir, "format")); os.write(FORMAT_TEXT); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e, SVNLogType.FSFS); } finally { SVNFileUtil.closeFile(os); } }
public static void createFormatFile(File adminDir) throws SVNException { OutputStream os = null; try { os = SVNFileUtil.openFileForWriting(new File(adminDir, "format")); os.write(FORMAT_TEXT); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e, SVNLogType.FSFS); } finally { SVNFileUtil.closeFile(os); } }
private BufferedWriter createWriter() throws SVNException { try { return new BufferedWriter(new OutputStreamWriter(new SVNCancellableOutputStream(SVNFileUtil.openFileForWriting(getReportFile(), true), getEventDispatcher()), "UTF-8")); } catch (UnsupportedEncodingException e) { return new BufferedWriter(new OutputStreamWriter(SVNFileUtil.openFileForWriting(getReportFile(), true))); } }
public static void createFormatFile(File adminDir) throws SVNException { OutputStream os = null; try { os = SVNFileUtil.openFileForWriting(new File(adminDir, "format")); os.write(FORMAT_TEXT); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e, SVNLogType.FSFS); } finally { SVNFileUtil.closeFile(os); } }
public static void createFormatFile(File adminDir) throws SVNException { OutputStream os = null; try { os = SVNFileUtil.openFileForWriting(new File(adminDir, "format")); os.write(FORMAT_TEXT); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e); } finally { SVNFileUtil.closeFile(os); } }
private static void markLogProcessed(File logFile) throws SVNException { SVNFileUtil.setReadonly(logFile, false); OutputStream os = null; try { os = SVNFileUtil.openFileForWriting(logFile); } finally { if (os != null) { SVNFileUtil.closeFile(os); } } }
private static void markLogProcessed(File logFile) throws SVNException { SVNFileUtil.setReadonly(logFile, false); OutputStream os = null; try { os = SVNFileUtil.openFileForWriting(logFile); } finally { if (os != null) { SVNFileUtil.closeFile(os); } } }
private static void markLogProcessed(File logFile) throws SVNException { SVNFileUtil.setReadonly(logFile, false); OutputStream os = null; try { os = SVNFileUtil.openFileForWriting(logFile); } finally { if (os != null) { SVNFileUtil.closeFile(os); } } }
private void writeFSType(FSFS dstOwner, String fsType) throws SVNException { OutputStream fsTypeStream = null; try { fsTypeStream = SVNFileUtil.openFileForWriting(dstOwner.getFSTypeFile()); fsType += '\n'; fsTypeStream.write(fsType.getBytes("US-ASCII")); } catch (IOException ioe) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, ioe.getLocalizedMessage()); SVNErrorManager.error(err, SVNLogType.FSFS); } finally { SVNFileUtil.closeFile(fsTypeStream); } }
public static UniqueFileInfo openUniqueFile(File dirPath, boolean openStream) throws SVNException { UniqueFileInfo info = new UniqueFileInfo(); if (dirPath == null) { dirPath = SVNFileUtil.createFilePath(System.getProperty("java.io.tmpdir")); } info.path = SVNFileUtil.createUniqueFile(dirPath, "svn", ".tmp", false); if (openStream) { info.stream = SVNFileUtil.openFileForWriting(info.path); } return info; }
public void writeToFile(File packFile, boolean compress) throws SVNException { OutputStream outputStream = SVNFileUtil.openFileForWriting(packFile); try { if (compress) { outputStream = writeCompressedLevelDefault(outputStream); } else { outputStream = writeCompressedLevelNone(outputStream); } } finally { SVNFileUtil.closeFile(outputStream); } }
public void loadFromRepository() throws SVNException { myBaseFile = SVNFileUtil.createUniqueFile(getTempDirectory(), "diff", ".tmp"); OutputStream os = null; myBaseProperties = new HashMap(); try { os = SVNFileUtil.openFileForWriting(myBaseFile); myRepos.getFile(myRepositoryPath, myRevision1, myBaseProperties, new SVNCancellableOutputStream(os, myCancelHandler)); } finally { SVNFileUtil.closeFile(os); } }
public void loadFromRepository(long revision) throws SVNException { myBaseFile = SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); OutputStream os = null; myBaseProperties = new SVNProperties(); try { os = SVNFileUtil.openFileForWriting(myBaseFile); myRepos.getFile(myRepositoryPath, revision, myBaseProperties, new SVNCancellableOutputStream(os, myCancelHandler)); } finally { SVNFileUtil.closeFile(os); } }
public void loadFromRepository(long revision) throws SVNException { myBaseFile = SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); OutputStream os = null; myBaseProperties = new SVNProperties(); try { os = SVNFileUtil.openFileForWriting(myBaseFile); myRepos.getFile(myRepositoryPath, revision, myBaseProperties, new SVNCancellableOutputStream(os, myCancelHandler)); } finally { SVNFileUtil.closeFile(os); } }
public void loadFromRepository(long revision) throws SVNException { myBaseFile = SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); OutputStream os = null; myBaseProperties = new SVNProperties(); try { os = SVNFileUtil.openFileForWriting(myBaseFile); myRepos.getFile(myRepositoryPath, revision, myBaseProperties, new SVNCancellableOutputStream(os, myCancelHandler)); } finally { SVNFileUtil.closeFile(os); } }