Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse's ANT using CVS gets error code 1

 
Michael Remijan
Author
Ranch Hand
Posts: 131
7
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 131
7
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool, glad you sorted it out without too much pain.

Cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic