0

I have been trying to import Tomcat Project from Github in Eclipse, but it is not importing as Java Project . Please explain a step by step guide to import Ant Project from Github to Eclipse.

I tried using this answered question on stackoverflow but project is getting imported fine but the git properties has gone missing.

Community
  • 1
  • 1

1 Answers1

0

Try out the following:

1. Open Eclipse, select File > Import > Git > Projects from Git
2. Select Existing Local Repository, click on next
3. Click on Add > Browse, select the directory where you have stored the repo, click on OK > Finish, and select the newly added repository and click on Next
4. Select "Import as General Project" > Next > Finish
5. Click on Window > Show view > Ant
6. Drag the build.xml file into the view, and click on the green play button. Things ought to build as well.

Reference (with screen shots, although here they add a git repo that is online as opposed to already cloned and on the local disk).

aspiring_sarge
  • 2,355
  • 1
  • 25
  • 32
  • @aspiring-sarge I have tried these steps, but the problem is its not imported as java project. – KodeCeeper Apr 19 '15 at 05:19
  • @KodeCeeper: I've added in a little more detail, changed things a little and tested it out on another repo that has both git and a build file, but no .project files. Does that help? – aspiring_sarge Apr 19 '15 at 13:48