Hi folks,

I'm a little new to subversion and SVNKit, so apologies for the noob
posting.  I'm currently looking to access a remote SVN repository and export
a copy of a given file on a release branch to my local drive.  My research
suggests that I can use SVNUpdateClient.doExport() for this, but I'm not
getting a result and I suspect I'm missing something.  The syntax I'm using
is:

long svnStatus = updateClient.doExport( new
File("rootDir/trunk/ADF/deploy/xyz.components.war"), new
File("c:\temp\xyz.components.war"), SVNRevision.create(latestRevision),
SVNRevision.create(latestRevision),null, true, SVNDepth.INFINITY);

Instead of returning a value, it is throwing an exception that I can't get
any details for.

I've stripped out most of the code because I'm calling it from server-side
javascript in IBM XPages which allows you to call the java classes from
within javascript, and the syntax would be confusing.  I can verify that I
can access the reporitory and get the revision number, so SVNKit is
installed and working.

Am I doing it wrong?  Any help would be greatly appreciated.

Cheers,

Brendan





--
View this message in context: 
http://subversion.1072662.n5.nabble.com/doExport-to-copy-single-file-help-with-syntax-tp176609.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.

Reply via email to