File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse's ANT using CVS gets error code 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Watch "Eclipse New topic
Author

Eclipse's ANT using CVS gets error code 1

Michael Remijan
Author
Ranch Hand

Joined: May 29, 2002
Posts: 126
    
    5

I'm running an ANT script within Eclipse. The ANT script is suppose to checkout files from CVS. I get the following error when I try to do this. Anyone run into this before?



[edited to add line breaks in PATH]
[ January 17, 2006: Message edited by: Jeanne Boyarsky ]

Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Try adding the "error" property to your CVS task to capture the error output into a file:

eg.
<cvs ... error="error.log" />

Also double check your checkout command, just briefly looking at the command, looks like you are missing a space when specifying your revision.

eg.
-r rmt_prod_20050925_5
Michael Remijan
Author
Ranch Hand

Joined: May 29, 2002
Posts: 126
    
    5

Those are good suggestions. However, when I do use the error property I get no output. And your comment about "-r rmt_prod_20050925_5" is on obvious thing to look at but, in fact with cvs "-rrmt_prod_20050925_5" works just fine. I tried it directly on the command line.

I have, however, discovered a solution. It's a cvs password problem. I was setting the attribute to my .cvspass file however, the version of WinCVS I'm using doesn't seem to use the .cvspass file anymore. Instead it stores your password in the windows system registry. So in my ANT build script I removed setting the location to my .cvspass file and it worked! cvs finds the password in the windows system registry.
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Cool, glad you sorted it out without too much pain.

Cheers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse's ANT using CVS gets error code 1