java svnkit: read content of file directly from repository, without exporting it

北战南征 提交于 2019-12-12 20:32:31

问题


I am using svnkit in Java to interact with a svn repository.

I would like to read the content of a file that is stored in svn without checking it out from the repository or exporting it. Is that possible?

Example filename that i would like to read: http://svnserver/myproject/example.txt

Can you help me out?


回答1:


Try SVNRepository.getFile(String path, long revision, SVNProperties properties, OutputStream contents).



来源:https://stackoverflow.com/questions/6994848/java-svnkit-read-content-of-file-directly-from-repository-without-exporting-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!