When you use the svn plugin in eclipse to fetch the project to your eclipse workspace, it will simply download all the files and add it as folders. After downloading the project from SVN, you won’t have the option to make any folder as the source folder under “Java Build Path” option in Eclipse. Without converting a SVN project into an Eclipse based Java project, you cannot clean the project, modify the build path or add new third party jar files into it.
Now, how do you convert a svn based checked-out project into a Java project. The steps are mentioned below:
Note the location of your project on hard disk. This can be done by right clicking your SVN project in Eclipse and choosing properties in the popup menu. The screen showing the location of project is shown below:
- Close Eclipse IDE
- Browse to the location where your SVN project is present on the hard disk
- Open .project file (This file is created by Eclipse IDE as meta data)
- Look for nature tag in this file.
Modify the nature tag with following text:
<natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures>
- Start Eclipse
- Now you should be able to do everything that you do with a regular Java project
- How do StringBuilder and StringBuffer to grow dynamically in size? - October 21, 2014
- IllegalThreadStateException and InterruptedException in a Java - October 18, 2014
- Object Oriented Analysis (OOA), Object Oriented Design (OOD) and Object Oriented Programming (OOP)? - October 17, 2014