posts - 13,comments - 19,trackbacks - 0

           

          1. SVN1.4.4下載地址:http://subversion.tigris.org/files/documents/15/38369/svn-1.4.4-setup.exe,下載,安裝(安裝文件自動配好環境變量,如果是下載的壓縮包則需要手工配置)。
          2. 下載SVNService.exe,拷貝到svn安裝目錄下的bin文件夾中。
          3. 在dos命令環境中執行svnadmin create d:\svnDB\TechInfo,會自動生成很多文件
          4. 在目錄d:\svnDB\TechInfo\conf下的passwd文件修改如下:
          ? [users]
          ? wusz = wusz
          在svnserve.conf文件中修改如下:
          ? [general]
          ? anon-access = read
          ? auth-access = write
          ? password-db = passwd
          ? authz-db = authz
          ? realm = TechInfo
          在文件authz中修改如下:
          ? [groups]
          ? manage =wusz
          ? user = wusz

          ? [/]
          ? @Manage = rw
          ? @user = r
          ? = r

          ? [text]
          ? @Manage = rw
          ? @user = rw
          ? = r
          5. 在dos命令環境中執行svnservice -install -d -r d:\svnDB\TechInfo
          6. 在服務中設置svnservice為自動啟動,并將其啟動。
          7. 測試導入項目,在dos命令環境中執行:
          svn import . svn://localhost/TechInfo -m "initial import" --username wusz --password wusz
          其中[.]表示當前目錄,你也可以指定項目的絕對路徑。
          如果出現錯誤:svn: D:\svnDB\TechInfo\conf\svnserve.conf:12: Option expected,原因是svnserve.conf前邊有空格,去掉即可。如果出現錯誤:svn: 認證失敗,則檢查authz和passwd中是否設置正確。
          如果正常的話會出現如下信息:
          ? 增加             .classpath
          ? 增加             WebRoot
          ? 增加             WebRoot\META-INF
          ? 增加             WebRoot\META-INF\MANIFEST.MF
          ? 增加             WebRoot\index.jsp
          ? 增加             WebRoot\WEB-INF
          ? 增加             WebRoot\WEB-INF\lib
          ? 增加             WebRoot\WEB-INF\web.xml
          ? 增加             WebRoot\WEB-INF\classes
          ? 增加             .mymetadata
          ? 增加             .project
          ? 增加             src
          ? 增加             .myeclipse
          ? 提交后的版本為 1。
          8. 測試導出項目,在dos命令環境中轉到一個新目錄,執行:
          D:\>svn checkout svn://localhost/TechInfo --username wusz --password wusz
          出現如下信息
          ? A      TechInfo\.classpath
          ? A      TechInfo\WebRoot
          ? A      TechInfo\WebRoot\META-INF
          ? A      TechInfo\WebRoot\META-INF\MANIFEST.MF
          ? A      TechInfo\WebRoot\index.jsp
          ? A      TechInfo\WebRoot\WEB-INF
          ? A      TechInfo\WebRoot\WEB-INF\lib
          ? A      TechInfo\WebRoot\WEB-INF\web.xml
          ? A      TechInfo\WebRoot\WEB-INF\classes
          ? A      TechInfo\.mymetadata
          ? A      TechInfo\.project
          ? A      TechInfo\src
          ? A      TechInfo\.myeclipse
          ? 取出版本 1。
          轉到D盤根目錄下,就可以在當前目錄下生成一個TechInfo的項目目錄,目錄中的內容就是我們剛才所提交的所有文件。
          9. Eclipse下的Svn配置
          版本控制軟件SVN的eclipse插件Subclipse,下載地址:http://subclipse.tigris.org/
          添加方式:打開MyEclipse,Help—Software Updates—Find and Install…-- Search for new features    to install. 下一步,New Remote site,在彈出框中,name寫“svn”,URL寫http://subclipse.tigris.org/update_1.2.x,一路確定下去。
                Windows->Preferences->Team檢查是否有SVN節點,點擊SVN即可看到該插件的設置界面。右擊項目名->Team->Share Project…打開項目共享對話框,對話框有兩個選擇,一是Eclipse內置的對CVS的支持,還有另外一個就是我們剛裝上的SVN。選擇SVN進入服務器設置界面,輸入svn服務路徑,用戶名,密碼,確認下去,到此完成。

          SVN官網提供的圖片示例:

          Begin the installation from the Eclipse Help menu item.

          Install screen

          Step 2:

          This screenshot show the screen as it initially comes up. In this case you will need to change the radio button to indicate that this is a new install.

          Install screen

          Step 3:

          This screen will vary depending on the features you have installed already. You want to click on the New Remote Site button. If you are behind a proxy and the Eclipse install mechanism does not work, then you can download a zipped version of the update site and then click the New Local Site button instead.

          Install screen

          Step 4:

          This screen is showing the New Remote Site dialog, filled in with the correct information to install Subclipse

              Name: Subclipse 1.2.x (Eclipse 3.2+)
                      URL:  http://subclipse.tigris.org/update_1.2.x
                      Name: Subclipse 1.0.x (Eclipse 3.0/3.1)
                      URL:  http://subclipse.tigris.org/update_1.0.x
                      

          Install screen

          Step 5:

          When you first come back to this screen, the site you added will NOT be selected. Be sure to select it before clicking Next.

          Install screen

          Step 6:

          This next screen shows all of the features that are available to install.

          Install screen

          Step 7:

          Click the button to accept the license agreement.

          Install screen

          Step 8:

          Confirm the install location

          Install screen

          Step 9:

          There is an Eclipse preference to turn off this next dialog. I have never seen a signed feature. Not even Eclipse.org nor IBM sign their features.

          Install screen

          Step 10:

          Just a screenshot of the in-process installation.

          Install screen

          Step 11:

          Eclipse needs to be restarted after installing Subclipse.

          Install screen

          Step 12:

          Finally, after restarting Eclipse, the first thing you will typically want to do is open the Subclipse Repository perspective where you can define your repositories. Be sure to also check the online help as well as the Subclipse preferences located under Team -> SVN.

          Install screen

          posted on 2008-06-17 09:28 南山隱士 閱讀(2242) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 双鸭山市| 宁国市| 余干县| 昂仁县| 和平县| 蓝山县| 安溪县| 长顺县| 昭苏县| 宣武区| 电白县| 开平市| 久治县| 黄龙县| 马关县| 安宁市| 柘城县| 临海市| 文安县| 乃东县| 湘乡市| 南城县| 阳信县| 张家港市| 武陟县| 辉南县| 若羌县| 泗水县| 山西省| 河源市| 吉林省| 岳池县| 依兰县| 社旗县| 涪陵区| 咸阳市| 肇源县| 宁波市| 盐城市| 长乐市| 安阳县|