This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Eclipse's ANT using CVS gets error code 1  RSS feed

 
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 ]
 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!