use of org.tmatesoft.svn.core.io.ISVNEditor in project Gargoyle by callakrsos.
the class SVNCommit method modifyFileCommit.
/**
*
* 수정된 코드를 서버 반영시 사용.
*
*
* @작성자 : KYJ
* @작성일 : 2016. 7. 12.
* @param dirPath
* remote server relative path.
* @param fileName
* only SimpleFileName
* @param oldData
* @param newData
* @param commitMessage
* @return
* @throws SVNException
* @throws IOException
*/
public SVNCommitInfo modifyFileCommit(String dirPath, String fileName, InputStream oldData, InputStream newData, String commitMessage) throws SVNException, IOException {
ISVNEditor editor = getDefaultSVNEditor(commitMessage);
SVNCommitInfo modifyFile = SVNCommitInfo.NULL;
try {
modifyFile = modifyFile(editor, dirPath, dirPath.concat("/").concat(fileName), oldData, newData);
} finally {
close(oldData);
close(newData);
}
return modifyFile;
}
Aggregations