Login | Register
My pages Projects Community openCollabNet

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

subclipse
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

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

Author beamer908
Full name Bradley Wagner
Date 2009-07-07 15:32:21 PDT
Message 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" />
            </fileset>
        </path>
        <typedef resource="org/tigris​/subversion/svnant/s​vnantlib.xml"
classpathref="svn.classpath" />
        <svn svnkit="true" javahl="false">
            <status path="." lastChangedRevisionP​roperty="svn.revisio​n" />
        </svn>
        <echo>Set SVN revision # to ${svn.revision}</echo>
    </target>

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
server.

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.subversio​n.javahl.SVNClient.s​tatus(Native
Method)
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
questions.

Thanks,
Bradley
Attachments

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

[Subclipse-users] SVNAnt Latest Trunk + SVNKit + SVN 1.6 beamer908 Bradley Wagner 2009-07-07 15:32:21 PDT
     Re: [Subclipse-users] SVNAnt Latest Trunk + SVNKit + SVN 1.6 jfrank Joshua Frankamp 2009-07-08 14:00:17 PDT
Messages per page: