views:

35

answers:

1

I'm trying to use svnkit to access subversion from the svnant ant tasks with the following result:

BUILD FAILED
/path/to/build.xml:49: Cannot find javahl, svnkit nor command line svn client
    at org.tigris.subversion.svnant.SvnTask.getClientAdapter(Unknown Source)
    at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)

I've verified that all the appropriate jars are on the classpath including svnkit.jar and svnjavahl.jar.

I get the same result running ant within eclipse 20100218-1602 with a similar classpath.

Curiously the following java program that invokes the above class appears to work:

org.tigris.subversion.svnant.SvnTask task = new org.tigris.subversion.svnant.SvnTask();
ISVNClientAdapter adapter = org.tigris.subversion.svnant.SvnTask.getClientAdapter(task);
System.out.println(adapter);

prints org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter

Also, the subclipse eclipse plugin uses svnkit (the one that came with eclipse) just fine.

A: 

I think I have this solved by adding more dependent jar files to the classpath. More later...

Edgar Styles