Re: How to use CVS from Eclipse without SSH?
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Fri, 22 Jul 2005 16:24:33 +0200
John wrote:
> In Eclipse I have to have a CVSROOT that includes a hostname so it can
> use SSH. Why can't I just specify a path:
>
> I want this:
>
> $ cvs -d /opt/cvsroot checkout blah
>
> Not this:
>
> $ cvs -d :ext:localhost:/opt/cvsroot checkout blah
>
> Why? Because I shouldn't need ssh and when I'm on a windows box I don't
> always have an ssh server installed.
I have solved it (under Linux, but an analogous solution should also be
possible on Windows, at least with cygwin) like this:
1. Specifiy the "ext" connection type in the CVS repository settings.
2. Enter the repository path as it appears in your local filesystem,
e.g. /opt/cvsroot.
3. Create a shell script like this:
#!/bin/sh
shift 4 # Just throw away the first four arguments
exec cvs ${1+"$@"} # call cvs with the remaining arguments
make it executable and save it, e.g. as extcvs.sh
4. In the eclipse preferences go to Team->CVS->Ext Connection Method and
enter the full path of extcvs.sh in the CVS_RSH input field.
That's it. Works like a charm for me.
--
-----------------------------------------------------------------------
Dr. Uwe Seimet http://www.seimet.de
.
- Follow-Ups:
- Re: How to use CVS from Eclipse without SSH?
- From: Frank
- Re: How to use CVS from Eclipse without SSH?
- References:
- How to use CVS from Eclipse without SSH?
- From: John
- How to use CVS from Eclipse without SSH?
- Prev by Date: Re: How to use CVS from Eclipse without SSH?
- Next by Date: Re: Object instantiation and garbage collection
- Previous by thread: Re: How to use CVS from Eclipse without SSH?
- Next by thread: Re: How to use CVS from Eclipse without SSH?
- Index(es):
Relevant Pages
|
|