Wednesday, August 10, 2011

How to branch in svn using eclipse

Eclipse is one of the best IDEs I have seen. The subversion support is also quite cool. Just ensure that you the latest version of the plugin installed.
While developing bigger projects , the branch feature of svn is quite helpful. Although now it seems quite easy but it took me some time to figure out the exact details.
So, to create a branch first the project should be setup like::
"project name"
|---- trunk
|---- tags
|---- branches

the folder "trunk" is the mainstream of the project. If you want to create a new branch or new tags.
  • Update your project (Team->update)
  • Create a branch/tag (Team->Branch/tag). Make a new subdirectory in the branches directory if you want a branch or in the tags directory.
  • Now, switch your working copy to this folder.
  • Your branches/tags have been create and you can switch between them whenever you want using (Team->switch to another branch/tag)

Monday, August 1, 2011

the import config cannot be resolved in Eclipse

When you face this the solutions you can use:
1) try refreshing(f5) or rebuilding the project
2) try switching between your workspaces
3) the fullproof method: go to Project -> Clean.

This shall do it. :-)