protected File createTempFile(SVNAdminArea dir, String name) throws SVNException { if (dir != null && dir.isLocked()) { File tmpFile = dir.getBaseFile(name, true); if (myTempFiles == null) { myTempFiles = new HashSet(); } myTempFiles.add(tmpFile); return tmpFile; } return SVNFileUtil.createUniqueFile(getTempDirectory(), name, ".tmp"); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCurrentFile = createFileInfo(path, true); if (myCurrentDirectory.myIsSkip || myCurrentDirectory.myIsTreeConflicted) { myCurrentFile.myIsSkip = true; return; } myCurrentFile.myBaseProperties = new SVNProperties(); myCurrentFile.myBaseFile = SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); }
protected File createTempFile(SVNAdminArea dir, String name) throws SVNException { if (dir != null && dir.isLocked()) { File tmpFile = dir.getBaseFile(name, true); if (myTempFiles == null) { myTempFiles = new SVNHashSet(); } myTempFiles.add(tmpFile); return tmpFile; } return SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); }
protected File createTempFile(SVNAdminArea dir, String name) throws SVNException { if (dir != null && dir.isLocked()) { File tmpFile = dir.getBaseFile(name, true); if (myTempFiles == null) { myTempFiles = new SVNHashSet(); } myTempFiles.add(tmpFile); return tmpFile; } return SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCurrentFile = createFileInfo(path, true); if (myCurrentDirectory.myIsSkip || myCurrentDirectory.myIsTreeConflicted) { myCurrentFile.myIsSkip = true; return; } myCurrentFile.myBaseProperties = new SVNProperties(); myCurrentFile.myBaseFile = SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCurrentFile = createFileInfo(path, true); if (myCurrentDirectory.myIsSkip || myCurrentDirectory.myIsTreeConflicted) { myCurrentFile.myIsSkip = true; return; } myCurrentFile.myBaseProperties = new SVNProperties(); myCurrentFile.myBaseFile = SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); }
protected File createTempFile(SVNAdminArea dir, String name) throws SVNException { if (dir != null && dir.isLocked()) { File tmpFile = dir.getBaseFile(name, true); if (myTempFiles == null) { myTempFiles = new SVNHashSet(); } myTempFiles.add(tmpFile); return tmpFile; } return SVNFileUtil.createUniqueFile(getTempDirectory(), ".diff", ".tmp", myIsUseGlobalTmp); }
public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { myCurrentFile = new SVNFileInfo(path, true); myCurrentFile.myBaseProperties = Collections.EMPTY_MAP; myCurrentFile.myBaseFile = SVNFileUtil.createUniqueFile(getTempDirectory(), "diff", ".tmp"); SVNFileUtil.createEmptyFile(myCurrentFile.myBaseFile); }
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); } }