Can I programmatically generate an Eclipse workspace?

Hi

I am working on a product consisting of loooots of small eclipse projects. We support .project files and create .classpath files using ivy, so managing each individual project is easy.

However, more painfully, you need to create a workspace that contains all the projects. This happens infrequently enough (basically every time we pass all the code to realease and stuff).

Does anyone know how to programmatically create Eclipse workspaces? Something to write the ant task for:

  • create workspace in a new folder
  • automatically "import" existing projects (from an existing svn check)
  • create Linked Resource / workspace variable
  • (optionnaly, create a place for team sharing and connect projects to SVN ...)
+6
source share
1 answer

You can automatically import a predefined set of projects through File> Import, then Team> Team Project Set. (You can define a set by pre-using the File> Export element.)

+2
source

Source: https://habr.com/ru/post/887260/


All Articles