【发布时间】:2015-06-25 21:09:09
【问题描述】:
我一直在尝试在 Eclipse 中导入 Tomcat Project from Github, 但它没有作为 Java Project 导入。请解释将 Ant 项目从 Github 导入 Eclipse 的分步指南。
我尝试使用 this 在 stackoverflow 上回答问题,但项目导入正常,但 git 属性已丢失。
【问题讨论】:
标签: eclipse git tomcat github ant
我一直在尝试在 Eclipse 中导入 Tomcat Project from Github, 但它没有作为 Java Project 导入。请解释将 Ant 项目从 Github 导入 Eclipse 的分步指南。
我尝试使用 this 在 stackoverflow 上回答问题,但项目导入正常,但 git 属性已丢失。
【问题讨论】:
标签: eclipse git tomcat github ant
尝试以下方法:
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 存储库,而不是已经克隆并在本地磁盘上)。
【讨论】: