user1015715
user1015715

Reputation: 11

Subversion 1.7.5 and svn-ant 1.3

I have SVN version 1.7.1 in a Solaris version 10 server and Tortoise SVN 1.7.1 in the client. I would like to upgrade the server to SVN 1.7.5 however we have ant scripts in the system using svn-ant 1.3

Does anyone knows whether svn-ant 1.3 is compatible with the new Subversion 1.7.5 and if you do where to find documentation about this interaction or any details?... Thanks.

Upvotes: 1

Views: 2937

Answers (2)

davidG
davidG

Reputation: 39

You can make your legacy ant scripts work with Subversion 1.7.x and working copies created with clients 1.7.x if you update your svnkit libraries. The latest SVNKit 1.7.8 supports 1.7.x working copy format and Subversion 1.7 servers. See Subversion 1.7 Compatibility for details

Note that my answer is for svnkit use only. For the use of javahl, I will try to update this answer if possible.

Setup

You need to update the svnkit related libraries with latest SVNKit release (1.7.8 or above). The shipped svnkit libraries in svnant 1.3.1 won't work with Subversion 1.7 Libaries required from svnant 1.3.1:

  • svnant.jar
  • svnClientAdapter.jar

Libraries needed from SVNKit 1.7.8:

  • svnkit-1.7.8.jar
  • svnkit-javahl16-1.7.8.jar
  • antlr-runtime-3.4.jar
  • sequence-library-1.0.2.jar
  • sqljet-1.1.6.jar

Ant Script

<!-- - - - - - - - - - - - - - - - - - 
      target: svn-test                      
 - - - - - - - - - - - - - - - - - -->
<target name="svn-test">
    <svnSetting svnkit="true" javahl="false" username="foo" password="bar" 
        id="svn.config" />
    <svn refid="svn.config">
        <info target="${basedir}" />
    </svn>
        <echo>${svn.info.lastRev}</echo>
</target>

Upvotes: 2

khmarbaise
khmarbaise

Reputation: 97407

Based on the information on tigris i would say. You can checkout from a server with 1.7.X but you can't use a working copy which has been checked out by 1.7.X clients, cause the working copy format has changed in 1.7.X.

Upvotes: 1

Related Questions