• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CVS Task in Ant

 
Mike Boyd
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 34218
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mike Boyd
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne,
thanks very much - that resolved my problem.

Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic