aspose file tools*
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
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30913
    
158

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CVS Task in Ant