public void cleanup() { for (File tempFile : tempFiles) { try { SVNFileUtil.deleteFile(tempFile); } catch (SVNException ignore) { } } }
public void delete() throws SVNException { SVNFileUtil.deleteFile(myFile); SVNFileUtil.deleteFile(myTmpFile); }
public void cleanupTempFiles() { for (File tempFile : tempFiles) { try { SVNFileUtil.deleteFile(tempFile); } catch (SVNException e) { //ignore } } tempFiles.clear(); }
private void closeCurrentFile() throws IOException { try { myCurrentInput.close(); } finally { try { SVNFileUtil.deleteFile(myCurrentFile); } catch (SVNException e) { // } myCurrentFile = null; } }
private void closeCurrentFile() throws IOException { try { myCurrentInput.close(); } finally { try { SVNFileUtil.deleteFile(myCurrentFile); } catch (SVNException e) { } myCurrentFile = null; } }
public void delete() throws SVNException { for (Iterator<File> files = myFiles.iterator(); files.hasNext();) { final File file = files.next(); SVNFileUtil.deleteFile(file); } myBuffer = null; }
public void delete() throws SVNException { for (Iterator files = myFiles.iterator(); files.hasNext();) { File file = (File) files.next(); SVNFileUtil.deleteFile(file); } myBuffer = null; }
public void cleanup() { cleanupTempFiles(); if (emptyFile != null) { try { SVNFileUtil.deleteFile(emptyFile); } catch (SVNException e) { //ignore } emptyFile = null; } }
public void cleanup() throws SVNException { if (myTempDirectory != null) { SVNFileUtil.deleteAll(myTempDirectory, true); myTempDirectory = null; } if (myTempFiles != null) { for(Iterator files = myTempFiles.iterator(); files.hasNext();) { SVNFileUtil.deleteFile((File) files.next()); } } }
private boolean attemptDeletion(File parentDir, File baseName) throws SVNException { if (baseName == null) { return false; } File fullPath = SVNFileUtil.createFilePath(parentDir, baseName); return SVNFileUtil.deleteFile(fullPath); }
private File createTempFile() throws SVNException { File tmpFile = null; try { return File.createTempFile("diff.", ".tmp", getTempDirectory()); } catch (IOException e) { SVNFileUtil.deleteFile(tmpFile); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getMessage()); SVNErrorManager.error(err, SVNLogType.DEFAULT); } return null; }
private File createTempFile(ISVNDiffGenerator generator) throws SVNException { File tmpFile = null; try { return File.createTempFile("diff.", ".tmp", getTempDirectory(generator)); } catch (IOException e) { SVNFileUtil.deleteFile(tmpFile); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getMessage()); SVNErrorManager.error(err, SVNLogType.DEFAULT); } return null; }
public void postUpgradeFormat(int format) throws SVNException { super.postUpgradeFormat(format); try { SVNFileUtil.deleteFile(getAdminFile("format")); } catch (SVNException svne) { } }
private File createTempFile(ISVNDiffGenerator generator) throws SVNException { File tmpFile = null; try { return File.createTempFile("diff.", ".tmp", getTempDirectory(generator)); } catch (IOException e) { SVNFileUtil.deleteFile(tmpFile); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getMessage()); SVNErrorManager.error(err, SVNLogType.DEFAULT); } return null; }
private File createTempFile() throws SVNException { File tmpFile = null; try { return File.createTempFile("diff.", ".tmp", getTempDirectory()); } catch (IOException e) { SVNFileUtil.deleteFile(tmpFile); SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getMessage()); SVNErrorManager.error(err, SVNLogType.DEFAULT); } return null; }
public void purgeTxn(String txnID) throws SVNException { SVNFileUtil.deleteAll(getTransactionDir(txnID), true); if (getDBFormat() >= FSFS.MIN_PROTOREVS_DIR_FORMAT) { SVNFileUtil.deleteFile(getTransactionProtoRevFile(txnID)); SVNFileUtil.deleteFile(getTransactionProtoRevLockFile(txnID)); } }
public void purgeTxn(String txnID) throws SVNException { SVNFileUtil.deleteAll(getTransactionDir(txnID), true); if (getDBFormat() >= FSFS.MIN_PROTOREVS_DIR_FORMAT) { SVNFileUtil.deleteFile(getTransactionProtoRevFile(txnID)); SVNFileUtil.deleteFile(getTransactionProtoRevLockFile(txnID)); } }
public void purgeTxn(String txnID) throws SVNException { SVNFileUtil.deleteAll(getTransactionDir(txnID), true); if (getDBFormat() >= FSFS.MIN_PROTOREVS_DIR_FORMAT) { SVNFileUtil.deleteFile(getTransactionProtoRevFile(txnID)); SVNFileUtil.deleteFile(getTransactionProtoRevLockFile(txnID)); } }
public void runOperation(SVNWCContext ctx, File wcRootAbspath, SVNSkel workItem) throws SVNException { File localAbspath = SVNFileUtil.createFilePath(wcRootAbspath, workItem.getChild(1).getValue()); SVNFileUtil.deleteFile(localAbspath); } }
public void copyTo(SVNProperties destination) throws SVNException { if (isEmpty()) { SVNFileUtil.deleteFile(destination.getFile()); } else { SVNFileUtil.copyFile(getFile(), destination.getFile(), true); } }