Windows Eclipse CVS sourceforge.jp

Windows XPEclipse 3.4.1 の CVS クライアントを使って sourceforge.jp のアカウントで作業を。。
anonymous ではなく sourceforge.jp のアカウントで commit ができるための設定をしました。

最初に試したのは

でしたが Windows ではうまくいかなかったので再度調査。

をすこし手直ししたら成功しました。

  • 以下 PC のアカウントは nishi で SF.jp のアカウントは nishimoto という想定。

まず Windows XP のコントロールパネル「システム」で環境変数の設定。

 HOME=c:/cygwin/home/nishi
 CVSROOT=nishimoto@sourceforge.jp:/cvsroot/galatea
 CVS_RSH=ssh
 [cygwin]
 $ cd
 $ ssh-keygen
 /home/nishi/.ssh/identity
 $ notepad .ssh/idendity.pub

これを sourceforge.jp の Account Maitainance で CVS/SVN/SSH Shared Authorized Keys に追加。
環境変数が反映されるように新しい cygwin コンソールで確認します。

 $ ssh -l nishimoto cvs.sourceforge.jp
 (omitted)
 You cannot execute anything here.
 Connection to cvs.sourceforge.jp closed.
 $ ssh -l nishimoto shell.sourceforge.jp
 Last login: Sat Nov  1 14:38:37 2008 from xxxxxxxxxxxxxxxxxxxx
 nishimoto@sf-usr-shell:~$ ls
 galatea
 nishimoto@sf-usr-shell:~$ logout
 Connection to shell.sourceforge.jp closed.

環境変数が反映されるように Eclipse を新たに起動します。

  • Window - Prefefence - Team - CVS - Ext connection method
    • CVS_RSH : c:\cygwin\bin\ssh.exe
    • Parameter : -l {user} {host}
    • SSH2 (General - Network Connections - SSH2)
  • New - Project - Project from CVS - New repository location
 Host: cvs.sourceforge.jp
 Repo Path: /cvsroot/galatea
 User: nishimoto
 Pass: (empty)
 Conn.Type: extssh

repository の中身が見えたので成功。

上記リンクと少し違う手順が必要でしたが、参考になりました。感謝。