Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cvs problem

 
Nijeesh Balan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Whenever I try to execute any "CVS" commands from Ant(v1.5.3) it fails with an errorcode of 2. When I copy paste the same command into WinCVS it gets executed successfully. Am I missing something?
one of the sample commands which i tried is...

Any hints would be really helpful !!
[ April 28, 2003: Message edited by: Nijeesh BH ]
 
Greg Charles
Sheriff
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Other than the smiley, and you typed destdir when you probably meant dest, the syntax seems to be fine. It's possible that you need to authorize yourself to access the archive. Take a look at the cvsPass task. I have to admit, though, I've never accessed a password-protected CVS archive through Ant. Let us know how you get it working! (If you do. )
 
joe abate
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you use winCVs you are all ready logged into the cvs server that is why the command works. When you use the cvs tags in ant you are not logged into cvs Here is a line from one of my build files and it works just fine. under ant 1.5
<cvs command="checkout -r${cvs.tag}" package="xxx" dest="${checkout.dir}" cvsroot="${cvs.root}"
passfile="${cvs.passfile}/.cvspass" />
cvs.tag the tag number you want to get
checkout.dir the root location location you want to put it Ie. c:\work
cvs.root the root of the cvs server Ie. server:${cvs.username}@cvsserver:/var/cvsrepos"
cvs.passfile is the location of the .cvspass file fore the user you are going to use. Ie C:\
cvs.username the user you want to use.
you need to generate a .cvspass file from cvs for the cvs user you want to use with the build.
 
Nijeesh Balan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry guys it was my blunder. I din't think i had to install cvs command line tool.
Now I just installed the latest version of the exe and renamed that exe to cvs.exe and it started working after adding it to the path variable.
Thanks for your inputs.
 
Madana Tamisetty
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a similar problem exceuting cvs tasks. I had to give the path to cvs.exe is the PATH variable on windowsNT. It started working from then.
Ty this, it might help you.
-madana
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic