Ant, SVN, and cruisecontrol daily build configuration method

Source: Internet
Author: User
Tags svn client tortoisesvn

Http://www.uml.org.cn/pzgl/200803217.asp

According to the company's project requirements, we recently developed a daily build of ant, SVN, and cruisecontrol. Before we forget it, we need to record some important steps.

I. Integration of ant and SVN
Ant: we all know that it is a Java-based build tool.
SVN: popular version control software (architecture ?).
Ant can integrate SVN, that is, define the download of Svn in the ant build. xml script for dynamic compilation.
The script configuration is roughly as follows:

Then configure the environment variable ant_home = D:/work/lib/Apache-ant-1.6.4 and add the ant bin directory to the path to execute the ant command in the command line.
Write the build. after the XML, I rushed to cmd to execute ant. Wow, the error was a mess. The error message showed that javahl could not be found. Whatever it was, I went to dig 0 [1]. 9.13. Copy all DLL files under the root directory of the compressed package to the System32 directory, and then execute ant in the command line. The result is that ant started downloading files from the svn server.
Ii. Re-integration of ant, SVN, and cruisecontrol
Configure SVN options in cruisecontrol:

Run cruisecontrol. bat
Error: net. SourceForge. cruisecontrol. cruisecontrolexception: Error executing SVN update command
You can check Google and Baidu. There are a lot of posts for help, that is, there is no solution (or someone else is unwilling to say it out ).
In this regard, it is time to give full play to the wisdom of the masses.
Considering the above ant and SVN integration problems, the first thing that comes to mind is that the svn execution bin may not be introduced into the environment variable. The SVN client I installed is tortoisesvn, So I configured the environment variable svn_home = D:/tortoisesvn, and then added it to the path ......; % Svn_home %/bin.
Run the command "cruisecontrol. Bat", "tmmd", or "net. SourceForge. cruisecontrol. cruisecontrolexception: Error executing SVN update command ".
If you are worried about it, you still have to make an error. You can't find the svn command. This is a good task. Let's try again.
Continue (check whether SVN. EXE exists in the bin directory of subversion ).
Run the command "cruisecontrol. Bat.

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.