This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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 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...
jQuery in Action, 2nd edition
subject: connecting to cvs using ANT