After my NAnt/NUnit talk at WinDev, a number of folks asked me about additional tasks that will integrate their version control system into their build system. I have successfully implemented NAnt build systems that talk to VSS, but I have since migrated my development over to Perforce. I looked around for some Perforce tasks, but didn’t find any, so I figure I’d write them and contribute them back to the community.
I have been using a private build of NAnt for some time now, which was based on a snapshot of stuff that I got almost a year ago. I decided today to go and grab the latest sources from SourceForge and sync my private build up with the public build. The “nightly builds” can be downloaded from the NAntContrib home page. However, these builds can’t actually be built, as there are a number of things missing. So I resigned myself to grabbing all of the sources from the NAntContrib CVS repository. This was when I was introduced to a load of pain.
The first wrong thing that I did was try to access CVS from computers inside my firewall. However, as I discovered, apparently you cannot have RRAS, ISA and CVS access all at the same time. You can have two of the three but not all three. If anyone knows of a way of opening up port 2401 so that I can talk to CVS from behind my ISA server, I’d really love to hear about it. I tried almost every combination, and some Google searches yielded other folks who had the same observations. Apparently it’s RRAS that’s the culprit.
In desperation, I used Terminal Server to start a CVS session with SourceForge from my ISA Server computer. This time, I ran into another set of problems. Silly me, I followed the instructions to talk to CVS. Each time I tried that, I got back a wonderfully informative error message: cvs [login aborted]: Error reading from server cvs.sourceforge.net: 0:<br> No such file or directory
I turned to my friend Tomas Restrepo, who has also done work on NAnt, and he came back with the following magic incantations that work:
cvs -d:pserver:anonymous@cvs.nantcontrib.sourceforge.net:/cvsroot/nantcontri b login<br> cvs -z3 -d:pserver:anonymous@cvs.nantcontrib.sourceforge.net:/cvsroot/nantco ntrib co NAntContrib
Worked like a charm. I hope this helps someone else who’s trying to grab the NAntContrib sources.
5 archived reader comments
Edris (2003-06-26)
Hello John Thanks about
windev_2003.zip“Access to the project CVS servers is provided via SSH (for developers) and the CVS pserver protocols (for non-developers). SSH uses TCP port 22; CVS pserver uses TCP port 2401. Many firewalls block outbound traffic on these ports, thus preventing SourceForge.net developers and users from accessing the project CVS servers. To work around this limitation, we now offer the ability to connect to the project CVS servers using alternate ports (using different hostnames). .... To access the project CVS server using anonymous pserver-based access from behind a firewall,you may connect to port 443 or port 80 of cvs-pserver.sourceforge.net. Traffic to port 443 and to port 80 of cvs-pserver.sourceforge.net is redirected to cvs.sourceforge.net.”
http://sourceforge.net/docman/
display_doc.php?docid=768&group_id=1#firewallI’m looking forward to hear from you about NCodeGen
with Best wishes
Brian (2003-07-09)
John, Thoroughly enjoyed your talks at WinDev 2003 and have been convinced that test-first development is a great thing. Can you point me in the direction of some examples of how to use NUnit to test more ‘complex’ code such as UI code or data access code?
Thanks
Richard Lawrence (2003-07-25)
John,
How’s progress on the Perforce tasks? I’m about ready to write my own, but if you’re going to be contributing them soon, I’ll hold off. If you want to collaborate to get them out sooner, I’m up for that, too.
Thanks
Bill Craun (2003-10-01)
John,
Any chance I can get my hands on the NAnt tasks for Perforce you mentioned about a couple of months ago?
Thanks, -bill
schuur (2004-06-04)
John, I understand you’ve already solved the ISA problem, but for those (including me) who kept hitting this page in search for an answer, here it is:
(My initial thought was that allowing all ip traffic for internal computers would suffice, but apparently it doesn’t.)
cheers, Gertjan