Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

  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 absolute paths in workspace configuration?
  3. Are there other bottlenecks in this task?
like image 400
Dmitry Maksimov Avatar asked Jul 16 '10 11:07

Dmitry Maksimov


2 Answers

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.

like image 142
djna Avatar answered Oct 12 '22 21:10

djna


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.

like image 36
Mark Peters Avatar answered Oct 12 '22 20:10

Mark Peters