The moose likes Ant, Maven and Other Build Tools and the fly likes connecting to cvs using ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "connecting to cvs using ANT" Watch "connecting to cvs using ANT" New topic

connecting to cvs using ANT

bill shone

Joined: Feb 10, 2004
Posts: 1
hi all,
im trying to checkout a doucment that i know exists on my cvs server. Ive tried two ways of connecting to the server but get error messages:
"error=2" something to do with not having cvs 'in the path'. I dont understand what that means...im using an ANT build file from within ecplise to do this.
has anyone come across this error and knows how to fix it AND has anyone got code that they have used successfully to connect to a cvs server.
much appreciated
B Hayes
Ranch Hand

Joined: Feb 07, 2003
Posts: 61
Hi, I don't know if this helps, but here's some code snippets of one of my ANT scripts for CVS:
<property name="project.home" value="${env.project_home}"/>
<property name="cvs.root" value="${env.cvsroot}" />
<!--Checkout source files from CVS-->
<cvs dest="${project.home}"

I have seen some errors in the past if your cvsroot directory is not set-up correctly. I do this as an evironment variable, since I have a Perl install script that kicks off my ANT build...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: connecting to cvs using ANT
Similar Threads
unable to checkout using CVS
Check out with CVS via ANt Script
ANT scp task stopped working in Java 1.6?
CVS connection problem