File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant checkout CVS using SSH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant checkout CVS using SSH" Watch "Ant checkout CVS using SSH" New topic
Author

Ant checkout CVS using SSH

Scott Presley
Greenhorn

Joined: Apr 15, 2003
Posts: 25
I have my source tree in a CVS repository that uses SSH instead of the pserver. I'm creating an ant script to perform a nightly build. I want to checkout the source from CVS, compile it, build the jars, and depoly it to the server. I've completed writing the script, but when the CVS target is executed it asks for my password to login to the cvs server.

I've lookked through the ant forum here and tried to do some googling to find an answer but really didn't find much. Is it possible to automate a build that checks source out of CVS with SSH? If not is there another build tool that might work?

Thanks in advance,
Scott
Lewin Chan
Ranch Hand

Joined: Oct 10, 2001
Posts: 214
SSH can be configured to use certificates for authentication against a server (rather than a password).

If you were to create a ssh certificate that doesn't have a passphrase (kinda bad), and you are using CVS_RSH=ssh then you should be able to silently checkout.

There have been a couple of posts in the "Linux" forum about how to configure ssh with certificates I think, either that or use google


I have no java certifications. This makes me a bad programmer. Ignore my post.
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
Yes, you should create a public/private combination, with no passphrase.
That works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant checkout CVS using SSH