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

[Subclipse-users] SVNAnt Latest Trunk + SVNKit + SVN 1.6

From: Bradley Wagner <bradley.wagner_at_hannonhill.com>
Date: Tue, 7 Jul 2009 18:32:19 -0400

I'm seeing some really strange behavior with a script I'm trying to write
using SVNAnt. Basically, my only goal is to get the latest revision of
project and stamp that into a file.

I built the svnant JAR from the trunk source. I used the included svnkit,
ganymede, svnClientAdapter and javahl libraries. I'm using the following
snippet to set the svn revision property:

    <target name="set-svn-revision" unless="svn.revision">
        <path id="svn.classpath">
            <fileset dir="${lib.internal.dir}/svnant-trunk">
                <include name="**/*.jar" />
        <typedef resource="org/tigris/subversion/svnant/svnantlib.xml"
classpathref="svn.classpath" />
        <svn svnkit="true" javahl="false">
            <status path="." lastChangedRevisionProperty="svn.revision" />
        <echo>Set SVN revision # to ${svn.revision}</echo>

I want to use svnkit so I don't have to rely on the developer's machine
having native svn libraries installed or having them installed on my CI

1) When javahl is on my svnant task's classpath, the task runs but the
revision is set to nothing
2) When I remove the javahl.jar from my classpath everything works, but from
the debug logging (i.e. 'ant set-svn-revision -debug') i can see it's using
the command line svn commands.
3) When I remove javahl="false" from my target but keep the javahl.jar, it
fails with:

Exception in thread "main" [svn] java.lang.NoSuchMethodError: <init>
      [svn] at org.tigris.subversion.javahl.SVNClient.status(Native
4) When I remove javahl="false" and remove the javahl.jar from my classpath,
it complains about missing javahl classes?

My goal is to get it to run with svnkit only. What do I need to put in my
target to force it to run with svnkit? Is the version of svnkit included in
the svnant trunk (and svnant itself) compatible with svn 1.6?

Please let me know if there is a more appropriate list to post svnant



To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2009-07-08 00:32:35 CEST

This is an archived mail posted to the Subclipse Users mailing list.

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