Great job, Clayton ...
I only have two minor concerns :
- should we have a more general name for the namespace for scm related tasks
(and have a subnamespace for cvs ?), so we can add more scm tasks later on
(eg. for sourcesafe, pvcs, ...) ?
- Can't these tasks actually be part of #cvslib itself ?
Gert
----- Original Message -----
From: "Clayton Harbour" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 10:38 PM
Subject: [nant-dev] Nant cvs task using sharpcvslib
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
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers