Ian,
I have attached the files for the cvs checkout/ update task (and unit
tests). I was unsure if zip files would be blocked or not so I just
include the files. I just followed the directory structure for the
other tasks (sorry, probably goes without saying but just in case...):
In the src directory:
NAnt.Cvs
+---AssemblyInfo.cs
NAnt.Cvs.csproj
NAnt.Cvs.build
Tasks
+--- AbstractCvsTask.cs
UpdateTask.cs
CheckoutTask.cs
And in the test directory:
NAnt.Cvs
+---Tasks
+---UpdateTaskTest.cs
+---CheckoutTaskTest.cs
I am using version 0.3.3 of the sharpcvslib which you can download here:
http://prdownloads.sourceforge.net/sharpcvslib/ICSharpCode.SharpCvsLib-0
.3.3.zip?download
<http://prdownloads.sourceforge.net/sharpcvslib/ICSharpCode.SharpCvsLib-
0.3.3.zip?download> .
One thing to note is I had some problems executing the checkout task and
then the update task in the same test. This occurred when I used
RunBuild to execute a checkout project in the SetUp and then used
RunBuild to execute an update project in the test method. I am not sure
exactly what the problem was but I think it might be that there was some
clash while creating the second project. Does that make sense? My
solution was to
I have also attached a build file (test.build) that can be used to
visually verify the tasks. I have the cvslib output going to the
console and it should be close to the output from most cvs clients
(although I am sure there are gaps here and there...if anyone notices
anything they need missing please send me an email).
Also: Subversion anyone?
--------------------------
I also looked into a subversion nant task and found the following
project set up on tigris:
http://ankhsvn.tigris.org/ <http://ankhsvn.tigris.org/>
I have not had the chance to look at it very closely but they are
basically creating a svn plugin for vs.net (pretty cool stuff!) which is
in the beta stage. I asked around on the list and one of the
maintainers, Arild Fines, said that they already have a working nant
checkout task using the ankhsvn libraries. He also said that I would be
free to work this back into the nant source tree but unfortunately I do
not have the time. If anyone is interested and wants to give it a shot
the task lives here:
http://www.ankhsvn.com:8088/svn/finalproject/trunk/tools/SvnTasks/
<http://www.ankhsvn.com:8088/svn/finalproject/trunk/tools/SvnTasks/> .
Talk to you later,
Clayton
test.build
Description: test.build
NAnt.Cvs.build
Description: NAnt.Cvs.build
NAnt.Cvs.csproj
Description: NAnt.Cvs.csproj
AssemblyInfo.cs
Description: AssemblyInfo.cs
UpdateTask.cs
Description: UpdateTask.cs
CheckoutTask.cs
Description: CheckoutTask.cs
AbstractCvsTask.cs
Description: AbstractCvsTask.cs
UpdateTaskTest.cs
Description: UpdateTaskTest.cs
CheckoutTaskTest.cs
Description: CheckoutTaskTest.cs
