Two Laptop Bag
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
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
author & internet detective

Joined: May 26, 2003
Posts: 33124

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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
It's not a secret anymore!