[英]Which is the best structure for an Android SVN project?
Which is the better structure for an SVN repository that will hold a single Android project (and why)?对于将包含单个 Android 项目(以及为什么)的 SVN 存储库,哪种结构更好?
http://myserver/svn
/trunk
/MyProject
/src
/res
/assets
/branches
/tags
or或者
http://myserver/svn
/trunk
/src
/res
/assets
/branches
/tags
Basically I want to know if the project root folder should be explicitly named in the hierarchy.基本上我想知道项目根文件夹是否应该在层次结构中显式命名。 The repository will only hold one project but it will have many branches and tags.该存储库将仅包含一个项目,但它将具有许多分支和标签。 I'm using Eclipse with an SVN plug-in.我正在使用 Eclipse 和 SVN 插件。
Thanks,谢谢,
Barry巴里
What I am generally doing (both for android and other technologies such as PHP -- and for SVN and other source control software such as Bazaar or Git) , is something like this:我通常在做什么(对于 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
So, pretty close to your first idea, except:因此,非常接近您的第一个想法,除了:
I would have it like this:我会这样:
http://myserver/svn
MyProject1
/trunk
/src
/res (external)
/assets
/branches
/tags
MyProject2
/trunk
/src
/res (external)
/assets
/branches
/tags
resources
Haven't done much of Android development, but stuff like resources I usually keep outside the main source structure and make use of svn:externals
to link think and potentially use them across various projects还没有做太多的 Android 开发,但是我通常保留在主要源结构之外并利用svn:externals
链接思考并可能在各种项目中使用它们的资源
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.