In Eclipse, how to have launch configurations relative to the project?

前端 未结 2 1101
借酒劲吻你
借酒劲吻你 2020-12-31 08:18

I usually have multiple copies of a project, for example: a copy of the trunk and another of the last release branch. To cleanly separate my project files from Eclipse, they

2条回答
  •  佛祖请我去吃肉
    2020-12-31 08:56

    My recommendation is to tie the workspace to the checkout location, and then you can use the launch configurations for the relevant projects in Subversion.

    My directory structure looks like this:

    {checkout root}
       |
       +code
       |
       -workspace
    

    In your case, that would mean a workspace for the trunk, and any other branch/tag you check out. I also keep all my projects outside the workspace. The workspace directory in Subversion is empty; I just recursively add the project reference(s) to the workspace from the sibling tree. It also helps if you export your Eclipse settings, as you can then re-import them into each new workspace.

    I derived this approach from a pair of IBM and Rational white papers for using Eclipse with Rational ClearCase. This should work unless you need to have multiple versions of the same project open in the same workspace.

提交回复
热议问题