Implementation code with the ant on the svn server checkin

2010-12-27  来源:本站原创  分类:Java  人气:100 

Ant to achieve checkin itself should not be too much trouble, but due to the svn ant plug-in version confusion, it is easy to make detours, to complete the integration of svn requires the following steps

1. Download the svn the ant plug-ins:

Download:

http://subclipse.tigris.org/files/documents/906/46267/svnant-1.3.0.zip

Note that the version of svn

2. Codecs, in the lib directory of all the jar (ganymed.jar, svnant.jar, svnClientAdapter.jar, svnjavahl.jar and svnkit.jar) package to copy the installation directory ant lib directory:

3. Now you can run, sample the build file is as follows:

<? Xml version = "1.0"?>
<project name="SVN Ant Test" default="commit" basedir=".">

<! - 1 ->
<Property name = "remote.url"
value = "https: / / www.sample.com / test" />
<Property name = "svnant.dir"
value = "C: \ Program Files \ apache-ant-1.7.1 \ lib" />
<! - 2 ->
<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" />
<path>
<fileset dir="svnant">
<include name="*.jar" />
</ Fileset>
</ Path>
<! - 3 ->
<target name="commit">
<svn javahl="yes" username="******" password="******">
<commit message="test" file="C:\\test-HZ\\test\\build.properties"/>
</ Svn>
</ Target>
</ Project>

Note: It is with the svn checkin to achieve quite upset, we now have a project to achieve under win7 checkin, first we thought that using windows command batch to batch checkin, but encountered a problem, because our svn is https, and and ssl certificate version, host name and the name is not registered as ssl, refused to check in

相关文章
  • Implementation code with the ant on the svn server checkin 2010-12-27

    Ant to achieve checkin itself should not be too much trouble, but due to the svn ant plug-in version confusion, it is easy to make detours, to complete the integration of svn requires the following steps 1. Download the svn the ant plug-ins: Download

  • Recently viewed products Jquery function implementation code 2010-11-25

    Recently viewed products Jquery function implementation code can refer to a friend in need. <script type="text/javascript" src="JS/jquery.js"> </ script> / / and similar frameworks Prototype <script type="text/javas

  • SVN Server on a Mac to create ruby ​​code management 2007-09-08

    Prepare themselves to do with ruby ​​on rails with a simple open source CMS system, originally part of the code has been written, but found the code management is chaotic, and there is no demand for a unified iterative control management, writing cod

  • SVN Server installation under Windows 2010-03-10

    SVN full name is Subversion, which is an open source version control software, with its similar software has CVS, VSS, ClearCase. The SVN as a cross-platform open source software, has a strong vitality, is also already quite mature, number of open so

  • SVN server permissions configured 2010-05-11

    First, one of the repository and service creation Through the subversion of the svnserve start apache service: 1. Subversion repository (repository): Located on the server, unified data management and storage areas. Describes the server configuration

  • ubuntu svn server configuration 2010-05-29

    Original Source: https: / / wiki.ubuntu.com / SubVersion Original author: ubuntu.com Installation Fortunately, Subversion has been included in the main warehouse. Therefore, to install Subversion, you only need a simple operation: $ sudo apt-get inst

  • SVN server configuration and management of real 2010-12-21

    Key words: SubVersion + Apache + OpenSSL 1.1. SVN (SubVersion) Introduction and basic concepts of version control is the art of change management information, it has long become an important tool for the programmer, because programmers often take the

  • SVN Server installation and configuration under ubuntu 2011-05-31

    A, SVN Installation 1. Installer $ Sudo apt-get install subversion 2. Add svn subversion user and group management $ Sudo adduser svnuser $ Sudo addgroup subversion $ Sudo addgroup svnuser subversion 3. Create project directory $ Sudo mkdir / home /

  • SVN server is installed under Windows 2010-03-10

    Full name is SVN Subversion, it is an open source version control software, with its similar software CVS, VSS, ClearCase. The SVN as a cross-platform open source software, has a strong vitality, is also already quite mature, and many open source pro

  • Graphic description of the windows set up SVN server basic steps 2010-12-24

    Since the company installed the svn server down, in order to hand in the construction of the project code management, decided to temporarily set up in his books on a SVN server. Specific installation and configuration process is as follows: First, yo

  • WINDOWS next steps to set up SVN server 2011-09-05

    Installed twice and finally understand what it should be noted, concluded one of the most simple instructions, save time 1, access to the svn program 2, installed Subversion (hereinafter referred to as SVN) server and client. Downloaded from the serv

  • How to configure SVN server 2010-03-21

    We learn SVN friends all know the benefits of SVN as much as the other also goes without saying, and when we achieve a certain scale of the project, people development and even more than off-site collaborative development, you can save for your team

  • SourceForge.net use as a public CVS / SVN server 2010-02-10

    To be able to in the workplace and at home or anywhere sync to your project code, you can use sourceForge site to act as a cvs / svn server, of course you upload the project code is open source, it is not something the company forward, Unless the com

  • google svn server for use 2010-03-26

    google svn server: 1. Http://code.google.com/ log in with gmail. > Then click the> Project Hosting 2. To enter>> http://code.google.com/hosting/> and click> Create a new project 3. Fill in the necessary project name, description, etc. OK

  • How and how to configure SVN server 2010-03-15

    Our friends all know that learning SVN SVN benefits of many other also goes without saying, and when we achieve a certain scale projects, many developed and even remote collaboration over the development, you can save for your team a lot of trouble.

  • Modify the hosts file to prevent changes to SVN server address the problem. [Change] 2010-04-30

    Step 1: First open the hosts file (location: C: \ WINDOWS \ system32 \ drivers \ etc \) In the hosts file add the following sentence (in front of SVN server IP is IP address): Text Code 192.168.40.43 svnserver 192.168.40.43 svnserver Step 2: Workshop

  • . Windows environment based on Apache's SVN server problems with the configuration process and summary 2010-05-08

    1.Windows environment based on Apache's SVN server installation and configuration 1.1 Installation Install Apache 1.1.1 (1) Download Apache Address http://httpd.apache.org/download.cgi Note: Apache 2.0.54 for Windows version than the existence of com

  • Modify the hosts file to prevent changes to SVN server address the problem. 2010-06-02

    Modify the hosts file to prevent changes to SVN server address the problem. Step 1: First open the hosts file (location: C: \ WINDOWS \ system32 \ drivers \ etc \) In the hosts file add the following sentence (in front of SVN server IP is IP address)

  • SVN server configuration instructions 2010-06-06

    1 Introduction It took 72 hours, finally mastered the initial Subversion. From an even "What is version control," do not know the layman, to configure the exact entry per directory access those in the middle of the day also card. Which costs a l

  • SVN server data will be synchronized to the Web server 2010-06-30

    SVN use in team development is very common, is a very easy version control system. If we are able SVN server data automatically posted to the Web server, it will be the entire project development, testing easier. The hook functions can use SVN SVN se