Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to programmatically generate Eclipse workspace?

Tags:

eclipse

ant

Greetings

I'm working on a product that is composed of loooots of small eclipse projects. We maintain .project files, and generate .classpath files using ivy, so the handling of each individual project is easy.

However, what is more painfull is to create a workspace containing all the projects. It happens infrequently enough (basically every time we branch all the code for realease and stuff).

Does anyone know of a way to create Eclipse workspaces programatically ? Something that would make it possible to write an ant task to :

  • create a workspace in a new folder
  • automatically 'import' existing projects (from an existing svn checkout)
  • create Linked Resource / workspace variable
  • (optionnaly, create a team sharing location and connect projects to SVN ...)
like image 871
phtrivier Avatar asked May 04 '11 09:05

phtrivier


1 Answers

You can automatically import a predefined set of projects via File>Import, then Team>Team Project Set. (You can define the set via a prior use of the sibling File>Export menu item.)

like image 173
Andy Thomas Avatar answered Nov 03 '22 19:11

Andy Thomas