Cannot find Javahl, Svnkit nor command line SVN client

Source: Internet
Author: User
Tags svn svn client

When using the ant script Check out code (SVN), you encounter an error,

Cannot find Javahl, Svnkit nor command line SVN client,


Ant itself is not check out, it can only use other tools, there are three kinds of tools to choose from, Javahl, Svnkit and the client's SVN clients.

In your ant script, you can configure these three ways,

<target name= "-ant-task" depends= "-retrieve-svntask" >
<typedef resource= "Org/tigris/subversion/svnant/svnantlib.xml" >
<classpath>
<path refid= "Svntask.classpath"/>
</classpath>
</typedef>
<svnsetting svnkit= "false" Javahl= "false" id= "Svn.settings"/>
<!--native SVN in the path-->
</target>


The above wording, <svnsetting svnkit= "false" Javahl= "false" id= "Svn.settings"/> Svnkit,javahl are all switched off if SVN client software is not installed on the machine , you will get an error.

Report cannot find Javahl, Svnkit nor command line SVN client error.


Where are Svnkit and Javahl?

Installing subversion in Eclipse, you can choose to install Svnkit and Javahl.

So if you install a subversion,eclipse environment, you should be able to find Svnkit and Javahl. But Ant may not be able to find it, so put the Svnkit or Javahl jar pack in Ant's Lib library.


Svnkit and Javahl jar packs can be found in the Eclipse's plugins folder and copied to Ant's Lib library.

You can also check it in your ant script, and then download it automatically, in a slightly more specific way.


With Svnkit and Javahl jar packages, you can modify Build.xml, <svnsetting svnkit= "false" javahl= "true" id= "svn.settings"/> or < Svnsetting svnkit= "true" Javahl= "false" id= "Svn.settings"/>. This allows the SVN command written in the ant script to execute.



Finally, the integration of Ant and Eclipse is really stable, much stronger than Maven. If it's simply source code versioning and dependency management, Mavan is really good. But with the design to the later build and deploy, I'd rather have all the projects ant managed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.