|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Downloading files from SVNHi all,
I've looked at the API but I can't seem to find how to do a "svn cat" operation with SVNKit. That's my preferred way to download text files but I also need to obtain binary files and store them in a byte[]. I expected to use doExport but it requires a directory so it's a dead end for me as well. What's the correct way to load a variable with the contents of a file stored in a remote repository using SVNKit then?
Regards
|
|
|
Re: Downloading files from SVNHello,
You may use either SVNWCClient.doGetFileContents(SVNURL, ...) or SVNRepository.getFile(...) methods. To get file content into byte[] use ByteArrayOutputStream in both methods. Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Jose Noheda wrote: > Hi all, > > I've looked at the API but I can't seem to find how to do a "svn cat" > operation with SVNKit. That's my preferred way to download text files > but I also need to obtain binary files and store them in a byte[]. I > expected to use doExport but it requires a directory so it's a dead end > for me as well. What's the correct way to load a variable with the > contents of a file stored in a remote repository using SVNKit then? > > Regards --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
|
|
Re: Downloading files from SVNThank you, it was very easy once I knew what to use. May I advice to include the 'svn cat' in the API doc of SVNWCClient? At least it gives some orientation to the end user.
Regards
On Mon, Aug 3, 2009 at 4:17 PM, Alexander Kitaev <Alexander.Kitaev@...> wrote: Hello, |
|
|
Re: Downloading files from SVNHello Jose,
Thanks, committed an edition suggested by you in trunk. ---- Alexander Sinyushkin, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Jose Noheda wrote: > Thank you, it was very easy once I knew what to use. May I advice to > include the 'svn cat' in the API doc of SVNWCClient? At least it gives > some orientation to the end user. > > Regards > > On Mon, Aug 3, 2009 at 4:17 PM, Alexander Kitaev > <Alexander.Kitaev@... <mailto:Alexander.Kitaev@...>> wrote: > > Hello, > > You may use either SVNWCClient.doGetFileContents(SVNURL, ...) or > SVNRepository.getFile(...) methods. To get file content into > byte[] use > ByteArrayOutputStream in both methods. > > Alexander Kitaev, > TMate Software, > http://svnkit.com/ - Java [Sub]Versioning Library! > > Jose Noheda wrote: > > Hi all, > > > > I've looked at the API but I can't seem to find how to do a "svn > cat" > > operation with SVNKit. That's my preferred way to download text > files > > but I also need to obtain binary files and store them in a byte[]. I > > expected to use doExport but it requires a directory so it's a > dead end > > for me as well. What's the correct way to load a variable with the > > contents of a file stored in a remote repository using SVNKit then? > > > > Regards > > --------------------------------------------------------------------- > To unsubscribe, e-mail: svnkit-users-unsubscribe@... > <mailto:svnkit-users-unsubscribe@...> > For additional commands, e-mail: svnkit-users-help@... > <mailto:svnkit-users-help@...> > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |