码迷,mamicode.com
首页 > 其他好文 > 详细

在svn中发布多个工程

时间:2014-07-30 12:37:44      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   strong   文件   io   

以前用svn只是在服务上发布一个工程,今天需求来了,要求部署两个,以前没有发布两个,只有现琢磨了,不过最后还是成功了,看下文:

为了方便首先切换到svn的bin目录下,我的是这个

 
  1. D:\Program Files\Subversion\bin> 

依次在cmd中执行下列命令

 
  1. mkdir d:\myproject1  
  2. svnadmin create d:\myproject1\project1  
  3. svnserve -d -r d:\myproject1 

在输入完第二条命令时,修改下D:\myproject1\project1\conf下的三个文件的内容(只显示修改过的部分)

authz

 
  1. [groups]  
  2. harryharry_and_sally = harry,sally  
  3. harryharry_sally_and_joe = harry,sally,&joe  
  4. [/]  
  5. * = rw  
  6. ql = rw 

passwd

 
  1. [users]  
  2. harry = harryssecret 
  3. sally = sallyssecret 
  4. ql = ql 

svnserve.conf

 
  1. [general]  
  2. ### These options control access to the repository for unauthenticated  
  3. ### and authenticated users.  Valid values are "write", "read",  
  4. ### and "none".  The sample settings below are the defaults.  
  5. anon-access = read 
  6. auth-access = write 
  7. ### The password-db option controls the location of the password  
  8. ### database file.  Unless you specify a path starting with a /,  
  9. ### the file‘s location is relative to the directory containing  
  10. ### this configuration file.  
  11. ### If SASL is enabled (see below), this file will NOT be used.  
  12. ### Uncomment the line below to use the default password file.  
  13. password-db = passwd 
  14. ### The authz-db option controls the location of the authorization  
  15. ### rules for path-based access control.  Unless you specify a path  
  16. ### starting with a /, the file‘s location is relative to the the  
  17. ### directory containing this file.  If you don‘t specify an  
  18. ### authz-db, no path-based access control is done.  
  19. ### Uncomment the line below to use the default authorization file.  
  20. authzauthz-db = authz  
  21. ### This option specifies the authentication realm of the repository.  
  22. ### If two repositories have the same authentication realm, they should  
  23. ### have the same password database, and vice versa.  The default realm  
  24. ### is repository‘s uuid.  
  25. realm = My First Repository  

修改完三个文件后,再执行

 
  1. svnserve -d -r d:\myproject1 

用同样的方法,在myproject1中建立project2,完成后,打开myeclipse,在svn中新建刚才的两个工程svn url为

 
  1. svn://localhost/project1  
  2.  
  3. svn://localhost/project2  

提示输入用户名和密码后,给每个工程添加一个项目,成功后如图

bubuko.com,布布扣

这样以来,在一个svn中就成功的创建了两个或者多个工程了。

本文出自 “乔磊的博客 学习 进步” 博客,请务必保留此出处http://sucre.blog.51cto.com/1084905/392617

在svn中发布多个工程,布布扣,bubuko.com

在svn中发布多个工程

标签:style   blog   http   color   os   strong   文件   io   

原文地址:http://my.oschina.net/sucre/blog/296363

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!