Jon, We're using ant for autobuild process also and once we faced the same problem. The matter is that cvs suppose to have kind of "homedir" - a directory where it checks out its files. The file .cvspass with latest authorization is kept there. If you use "cvs login" in one dir and then do "cvs checkout" in another - cvs gets confused since it cannot see .cvspass file. HOMEDRIVE system variable (NT) is also somehow used to determine where to place .cvspass.
I see two possible solutions: 1) Run "cvs login" in build.xml file. In this case you need to type password from the console which is not good for automated build process. 2) Run a script that does the following: - cvs login - cvs co - ant build - cvs logout In our company we switched to the second scheme since we faced more problems and decided this option to suite us better. Hope that helps, Max > -----UrsprЭngliche Nachricht----- > Von: Jon Wilmoth [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 7. Dezember 2000 20:55 > An: [EMAIL PROTECTED] > Betreff: CVS ANT task...login problem > > > I'm having problems executing the 'CVS' target you helped author for ant. > I hope you can help! I'm attempting to execute the update command, but I'm > getting the following two error messages > > cvsupdate: > [cvs] cvs update: authorization failed: server <host> rejected access > to /vault for user jon > [cvs] cvs update: used empty password; try "cvs login with a real > password" > > I've switched my 'cvsupdate' build target to use the "exec" command as an > interm solution, but I thought you might have some insight that would allow > me to use a more 'supported' target. > > Thanks, > > P.S. I have logged into cvs from the command line with the shell running > the ant build prior to trying to the cvs task. > > > ************************************************ > Jon Wilmoth > Software Architect > eSage, llc > (206) 264-5675 (Voice & Fax) > [EMAIL PROTECTED] > http://www.esage.net >
