Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7758529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:23:06+00:00 2026-06-01T13:23:06+00:00

I was provided with an ant build file from someone else which uses svnant

  • 0

I was provided with an ant build file from someone else which uses svnant and I’m having issues with getting it to work. I extracted out the part that is causing me problems into a separate file:

<project name="rev-check macrodef">
    <sequential>    
        <!-- ant contrib task definition -->
        <taskdef resource="net/sf/antcontrib/antlib.xml">
          <classpath>
            <pathelement location="C:/rms-it-apps/ant/taskdefs/ant-contrib-1.0b3.jar"/>
          </classpath>
        </taskdef>

        <taskdef resource="org/tigris/subversion/svnant/svnantlib.xml" loaderref="svnant.loader">
          <classpath>
            <pathelement location="C:/rms-it-apps/ant/taskdefs/svnant-1.3.1/lib/svnant.jar"/>
            <pathelement location="C:/rms-it-apps/ant/taskdefs/svnant-1.3.1/lib/svnClientAdapter.jar"/>
            <pathelement location="C:/rms-it-apps/ant/taskdefs/svnant-1.3.1/lib/svnjavahl.jar"/>
           </classpath>
        </taskdef>
    </sequential>
    <!-- <svn svnkit="false" javahl="false"> -->
    <svn>
        <info target="C:/dev/workspace/rmsitpew/PEW/src" />
        <wcversion prefix="wc" path="C:/dev/workspace/rmsitpew/PEW/src" />
    </svn>
    <echo>Here 1</echo>

When I try to run it with just the <svn> tag I get the following output:

C:\dev\svnant>runant

C:\dev\svnant>C:\Programs\eclipse\plugins\org.apache.ant_1.8.2.v20120109-1030\bi
n\ant.bat
Buildfile: C:\dev\svnant\build.xml
      [svn] Missing 'javahl' dependencies on the classpath !

BUILD FAILED
C:\dev\svnant\build.xml:19: Cannot find javahl, svnkit nor command line svn clie
nt

Total time: 0 seconds

I saw a suggestion to run it with the tag <svn svnkit="false" javahl="false"> but then I get this output:

C:\dev\svnant>C:\Programs\eclipse\plugins\org.apache.ant_1.8.2.v20120109-1030\bi
n\ant.bat
Buildfile: C:\dev\svnant\build.xml
      [svn] Deprecated attribute 'svnkit'. This attribute will disappear with SV
NANT 1.3.2. Use svnSetting instead.
      [svn] Deprecated attribute 'javahl'. This attribute will disappear with SV
NANT 1.3.2. Use svnSetting instead.
      [svn] svn: The path 'C:\dev\workspace\rmsitpew\PEW\src' appears to be part
 of a Subversion 1.7 or greater
      [svn] working copy rooted at 'C:\dev\workspace\rmsitpew'.
      [svn] Please upgrade your Subversion client to use this working copy.
      [svn] <Info> failed.

BUILD FAILED
C:\dev\svnant\build.xml:18: Failed to set 'info' properties

Here are the contents of the directory C:\rms-it-apps\ant\taskdefs\svnant-1.3.1\lib:

04/05/2012  10:44 AM             3,010 GANYMED-LICENSE
04/05/2012  10:44 AM           244,831 ganymed.jar
04/05/2012  10:44 AM             2,800 JAVAHL-LICENSE
04/05/2012  10:44 AM               544 JNA-LICENSE
04/05/2012  10:44 AM           948,100 jna.jar
04/05/2012  10:44 AM             2,276 SEQUENCE-LICENSE
04/05/2012  10:44 AM            76,383 svnant.jar
04/05/2012  10:44 AM            11,935 SVNCLIENTADAPTER-LICENSE
04/05/2012  10:44 AM           215,757 svnClientAdapter.jar
04/05/2012  10:44 AM            89,412 svnjavahl.jar
04/05/2012  10:44 AM             2,695 SVNKit-LICENSE
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:23:07+00:00Added an answer on June 1, 2026 at 1:23 pm

    Some problems:

    • Your commandline client (svn) seems to be of an older version than the client you use to checkout/create your working copy. It is essential that the svn version you use in ant is EXACTLY the same as other svn tools you use on this working copy. The error suggests that you need to update the command line client to a 1.7 version
    • javahl needs some strange libs to be installed in windows. See here for details. Or ask the one who provided the task.
    • you can ignore the deprecated warning at first. And fix it when everything works.

    I’d suggest sticking to the commandline client or using svnkit.

    Here you can find a general overview of all available tools, which you can use with the ant task.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a java project with a ant build file, using this ant
I am using Ant to build my software. Ant creates an Xml file with
Since the upgrade from Ant 1.6.5 to 1.7.1, my build output starts off with:
I am currently migrating our build process from Eclipse/Ant to Maven/M2Eclipse/Artifactory. I have a
When using ANT to build my Java application I keep getting this error. I
The ways I know about so far are Create an ant build.xml file, make
I am trying to revamp our build process, which is currently a gigantic Ant
I know rails provided CSRF protection by default from rails3. but my web application
I have been provided with a C++ DLL and associated header file in order
I come from an ant background, and I'm starting to use msbuild. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.