Friday, November 16, 2007

SVN Java Project With Eclipse

If you have your source code in a SVN repository and want to set up a Java project in Eclipse (tested on the Helios release), you cannot simply do a New --> Project --> SVN --> Checkout projects from SVN.
The resulting project will not be a Java project and you won't be able, for example, to set up the build path with all its implications...

This is the way to go:
  1. Choose Window --> Open perspective --> SVN repository exploring, configure the repository.
  2. Open it and choose the trunk, a tag or a branch.
  3. Do a right-click and do a Find/Checkout As (e.g. as a Java project)

4 comments:

Unknown said...

Thanks a lot !!!
I dint have a idea how to do it before seeing ur blog.

-kanisk

Shimul said...

Thanks.
It helped me..

Cheers
Shimul

Unknown said...

Ehm... i want to do that, but my Eclipse does not have SVN options nowhere; i guess is cause i download the wrong version.

Which version should i choose to work with a SVN project?

Thanks!

http://www.eclipse.org/downloads/

pavan said...

Thanks a lot, This was really helpful.