• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cvs problem

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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. )
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Just let me do the talking. Ahem ... so ... you see ... we have this tiny ad...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic