This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "CVS Task in Ant" Watch "CVS Task in Ant" New topic
Author

CVS Task in Ant

Mike Boyd
Greenhorn

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
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Mike,
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
Greenhorn

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

Mike
 
It is sorta covered in the JavaRanch Style Guide.
 
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