|
|
本文主要介绍一种可以用netbeans4.0连接上ssh方式登陆的linux环境下的cvs版本控制方法. 假设:主机ip:host 用户:username 先下载软件 pshell.exe http://www.privateshell.com/ 和 WinCvs20-2.zip http://www.wincvs.org/ 和 netbeans-4_0-bin-windows.exe http://www.netbeans.org/
假设软件都安装在D盘
1.环境变量的PATH后添加 d:\Program Files\SSH Communications Security\SSH Secure Shell;D:\Program Files\cvsnt
2.使用 Private Shell Autoconfiguration Wizard 建立一个Terminal connection with password authentication 连接 保存登陆密码,master设为空,这样方便登陆
3.在D:\Program Files\Private Shell下建立一个mycvs.bat文件 内容: @echo off set CVSROOT=:ext:username@host:/cvs/project set PRIVATESHELL_CLI_PROFILE=username@host cvs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 (PRIVATESHELL_CLI_PROFILE内容与2步骤种设定的名称对应)
4.在netbeans中建立一个versioning,内容: Version Control System Profile: CVS Working Directory: yourdir CVS Server Type: ext CVS Server Name: host Port: port User Name: username Repository Path: /cvs/project Use Command-Line CVS Client CVS Executable: mycvs RemoteShell: ssh
以上配置经测试在win2000下是成功的.
感觉netbeans的版本控制还不够完善,现在看来比eclipse的逊色不少. 还有就是可怜的英文版上面有很多地方的中文会显示成方格.我只好同时又装了个中文版的. |
|