哪个是包含单个Android项目的SVN存储库的更好结构(以及为什么)?
http://myserver/svn
/trunk
/MyProject
/src
/res
/assets
/branches
/tags
Run Code Online (Sandbox Code Playgroud)
要么
http://myserver/svn
/trunk
/src
/res
/assets
/branches
/tags
Run Code Online (Sandbox Code Playgroud)
基本上我想知道是否应该在层次结构中显式命名项目根文件夹.存储库只能容纳一个项目,但它将包含许多分支和标记.我正在使用带有SVN插件的Eclipse.
谢谢,
巴里
我一般做的事情(无论是Android还是其他技术,如PHP - 以及SVN和其他源控制软件,如Bazaar或Git),都是这样的:
http://myserver/svn
/MyProject
/trunk
/sources
/src
/res
/assets
/ressources
=> Here, I can put text files, documentation, ...
that is really part of the projet -- but not part of the application
/branches
/tags
Run Code Online (Sandbox Code Playgroud)
所以,非常接近你的第一个想法,除了:
我会这样:
http://myserver/svn
MyProject1
/trunk
/src
/res (external)
/assets
/branches
/tags
MyProject2
/trunk
/src
/res (external)
/assets
/branches
/tags
resources
Run Code Online (Sandbox Code Playgroud)
没有做过太多的 Android 开发,但是我通常将资源之类的东西保留在主要源代码结构之外,并利用svn:externals它们来链接思考并可能在各个项目中使用它们