我第一次有机会开始一个新项目。
关于“开发”,我对项目的结构感到满意。它有通常的'src'、'lib'、'resources'、'test'等目录。我在 Eclipse 项目中已经有了这个结构。
我无法决定源代码管理中的目录结构应该是什么。我目前正在考虑以下几点:
/sourcecontrol/branch/MyProject:
-dev
---- Here I will have dirs that make up the 'Eclipse' project.
-dbscripts
---- sql Scripts for any DB Schema change
-documentation
---- UserGuide.pdf
---- DeveloperGuide.pdf
---- Other such docs
-sh
---- Here I will have the scripts to deploy, start, and stop the web server.
-notes
---- Here I will store random 'helpful notes' that developers can create for other developers.
这个想法是,当有人只想“开发”项目时,他们只能检查“开发”目录。
这是一个好主意吗?你过去的经验有什么建议吗?对于不谈论“src”、“test”、“lib”等的新项目,我一直无法找到“最佳实践”。
编辑:如果有帮助,它是一个 java spring+hibernate webapp
EDIT2:这是我现在关心的问题:Eclipse 项目结构也应该是 Source 国家/地区的项目结构吗?如果是这样,那么 Eclipse 项目的基本目录,也将成为源代码管理项目的基本目录