typesafehub/sbteclipse — pull request #112 by JamesEarlDouglas (2012-05-24 18:26:09+00:00)
Title: add new option to use project-id as eclipse project name

This was mentioned on the mailing list: https://groups.google.com/d/topic/simple-build-tool/S46H3BQdLAw/discussion

The idea here is to add a new setting, called `useProjectId`. When `useProjectId` is present and set to `true`, then the generated Eclipse `.project` file will specify a project name based on the sbt project id, rather than the sbt project name.

The use case for this is caused by Eclipse's inability to open multiple projects of the same name within a workspace. I often work with sbt projects which are composed of multiple versions of a project, all with the same module name, but with different revisions.

For example, I might have subprojects myproject-1.0, myproject-2.0, etc. If I generate Eclipse configuration for these projects they will both have the name `myproject`, which prevents me from opening both of them in Eclipse at the same time. Adding the `useProjectId` setting will cause the Eclipse project names to be distinct (based on the `id` of the sbt projects), so I can work with both of them in the same workspace.