从Github导入Ant项目

时间:2015-04-19 04:48:03

标签: eclipse git tomcat github ant

我一直在尝试在Eclipse中导入Tomcat Project from Github, 但它不是作为Java Project导入的。请解释将Ant项目从Github导入Eclipse的分步指南。

我尝试在stackoverflow上使用this已回答的问题,但项目导入正常,但git属性已丢失。

1 个答案:

答案 0 :(得分:0)

尝试以下内容:

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(有屏幕截图,虽然在这里他们添加了一个在线的git仓库,而不是已经克隆并在本地磁盘上)。