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.