I work on several different projects which use feature branches; that is to say, each feature is implemented on an independent branch. I frequently need to switch between branches rapidly, or test different branches against each other (to see if a branch introduces test failures, or to use a client program in one branch against a server program in a different branch).
Practically speaking, in Eclipse, this means that I need to have a project in my workspace for each different branch.
I already have a little external Python script that creates the .project
and .pydevproject
files, but I still have to click on "File", "Import", "Existing Projects Into Workspace", "Browse", then select the file, then "Finish". Finally I have to wait for Eclipse to re-scan all of the "new" source code, even though it's the same as every other copy of this project that I have in my workspace.
I would like to automate any of these steps that I can. Is there a way to connect to Eclipse from a script and tell it to invoke this functionality?