File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Check out with CVS via ANt Script 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 "Check out with CVS via ANt Script" Watch "Check out with CVS via ANt Script" New topic
Author

Check out with CVS via ANt Script

kayyum khan
Greenhorn

Joined: Jul 31, 2009
Posts: 2
When Im trying to use the cvs checkout command in the ant script it gives an error sayiing

[cvs] Caught exception: Cannot run program "cvs": CreateProcess error=2, The system cannot find the file specified

can anyone help me to find the solution
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Did you read the Ant docs? Here is the start of the second paragraph on the cvs task:

Important: This task needs "cvs" on the path. If it isn't, you will get an error (such as error 2 on windows).


JBoss In Action
kayyum khan
Greenhorn

Joined: Jul 31, 2009
Posts: 2
do we have to explicitly download the cvs.exe or it come default with ant
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

cvs.exe does not come with ant, you have to first download and install it (I have always wondered why the cvs tasks are considered core ant tasks when they require you to download and install third-party software)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check out with CVS via ANt Script