[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problems checking out using javahl

From: <subversion_at_smartcvs.com>
Date: 2004-07-01 16:47:18 CEST

Hi,

I've trying to use javahl, but the checkout seems not to work as
expected (C:\temp exists, I've also tried it with parameter "new
Revision(-1)"). Any help is appreciated.

==================================================
public static void main(String[] args) {
        final SVNClient client = new SVNClient();
        try {
                final long result = client.checkout("svn://localhost/test",
"C:\\temp", null, true);
                System.out.println("result = " + result);

                list(client);
        }
        catch (ClientException ex) {
                ex.printStackTrace();
        }
        finally {
                client.dispose();
        }
}

private static void list(SVNClient client) throws ClientException {
        final DirEntry[] entries = client.list("svn://localhost", null, true);
        for (int i = 0; i < entries.length; i++) {
                final DirEntry entry = entries[i];
                System.out.println(entry.getPath() + ":" +
entry.getLastChangedRevision());
        }
}
==================================================
Prints just:
result = -1
test:1
test/classes:1
test/src:1

--
Best regards,
Thomas Singer
_____________
smartcvs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 1 16:48:33 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.