This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes CVS Task in Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "CVS Task in Ant" Watch "CVS Task in Ant" New topic

CVS Task in Ant

Mike Boyd

Joined: Aug 15, 2005
Posts: 2
I am attempting to check out a package from CVS (named "cvsPackage" to dest "destDir"). I am using the following task:
<cvs package="cvsPackage" dest="destDir" />
I am getting the following error message:
[cvs] Caught exception: CreateProcess: cvs checkout cvsPackage error=2

I downloaded a version of CVS (and feel that it is being recognized because when I type "cvs --help" I get the list of help items) I have added the location of the cvs.exe to my Path System variable, which I hoped would resolve this error, but no luck.

Any suggestions?
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30076

Welcome to JavaRanch!

Do you have your CVSROOT set as an environment variable? If not, you need to add it as an attribute to the task.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mike Boyd

Joined: Aug 15, 2005
Posts: 2
thanks very much - that resolved my problem.

I agree. Here's the link:
subject: CVS Task in Ant
Similar Threads
unable to checkout using CVS
using ant to check out cvs files
cvs problem
Retrive code from CVS
Unable to run ejbc from within eclipse