开发者

What is the common solution to setup Eclipse for team development?

开发者 https://www.devze.com 2023-01-07 19:57 出处:网络
Should every team member create his or her own workspace and import project stored under source control? Or is there a way to put workspace under source control too?
  1. Should every team member create his or her own workspace and import project stored under source control? Or is there a way to put workspace under source control too?
  2. How to avoid using ab开发者_高级运维solute paths in workspace configuration?
  3. Are there other bottlenecks in this task?


I would not put Workspaces into SCM; that would demand that each developer's environment be identical. Instead take care to avoid any hard-coded paths; use workspace variables.

Use Project Set Files to identify and share sets of projects that need to be imported to a Workspace. These files can/should be kept in SCM, perhaps in dedicated release projects.

My practice when doing serious work on an application is to start with a clean workspace, no extraneous projects. Populate it using the PSF.


One route people take is to generate the Eclipse projects from the build file. This has an added benefit if the development environment is designed to not have a rigid structure (e.g. the path to library X can be relatively different in environment Y than in environment Z) since the same configuration data (files, environment variables, etc) can be used to set up the Eclipse project as the non-Eclipse environment.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号