aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Connect to CVS via Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Connect to CVS via Ant" Watch "Connect to CVS via Ant" New topic
Author

Connect to CVS via Ant

Rama Ituarte
Ranch Hand

Joined: Apr 10, 2002
Posts: 62
Alright brothers
I need some help with Ant and CVS. Can anybody tell me how to connect to a CVS server via Ant.
I would greatly appreciate it.
Thanks
Rama
Rama Ituarte
Ranch Hand

Joined: Apr 10, 2002
Posts: 62
Ok, I figured it out. If anybody has the same question here is the answer.
First you need to install WinCVS because Ant cannot connect to CVS directly. Place the cvs.exe on you system PATH variable. That is about it.
Run the following ant script to test out
<project default="CVS">
<target name="CVS">
<cvspass cvsroot=" server:yourusername@yourCVSserverIPAddress:/your/cvsroot" password="yourpassword" />
<cvs command="-version"/>
</target>
</project>
Rama
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
Originally posted by Rama Ituarte:
First you need to install WinCVS because Ant cannot connect to CVS directly. Place the cvs.exe on you system PATH variable.
Let me add that another option would be to simply download the CVS for Windows (without the WinCVS GUI)...


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
http://ant.apache.org/manual/CoreTasks/cvs.html
 
 
subject: Connect to CVS via Ant
 
Threads others viewed
Does ant support CVS with ssh mode?
Eclipse 3.1 CVS problem
Help Needed with ANT
Eclipse won't connect to CVS on windows 2000
ANT and CVS
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture