title: In Eclipse, how to have launch configurations relative to the project?
body: <p>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 are checked out from Subversion in a directory outside the Eclipse workspace. </p>
  
  <p>I want to make the project easily importable to Eclipse and followed instructions from <a href="https://stackoverflow.com/questions/337304/which-eclipse-files-belong-under-version-control">multiple</a> <a href="https://stackoverflow.com/questions/952290/how-do-i-save-eclipse-launch-profiles-across-workspaces">answers</a>. </p>
  
  <p><strong>The problem is that my .launch files have the project name hardcoded.</strong> When a new project is imported, the launch files will display in the Run Configurations menu just if the project has exactly the same name of the exported one. This forbids me to have two versions of the same project. </p>
  
  <p>It looks like the only way to do it is to have the .launch and .project files generated from an Ant task, but I don't see anyone using this solution. Maybe I should have multiple workspaces and the project always with the same name. </p>
  
  <p>What's the best way to do it?</p>
  
  <p><strong>Edit:</strong> I'm marking VonC as the answer, but don't miss the comments. </p>