eclipse - 从 Github 导入 Ant 项目

标签 eclipse git tomcat github ant

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

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

最佳答案

尝试以下操作:

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 存储库,而不是已经克隆在本地磁盘上)。

关于eclipse - 从 Github 导入 Ant 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29725910/

相关文章:

Tomcat 中断下载流

web-services - spring boot部署外部tomcat

java - Eclipse 中的步骤是输入每个方法

git - 你如何避免人们忘记运行 'git push' ?

c++ - 我必须构建才能消除 Eclipse 中的错误吗?

git - 远程测试时如何设置 git 开发环境

git - Ubuntu VM git fetch 挂起

apache - 将主机 ip 重定向到 apache tomcat 集群中的负载均衡器

eclipse - 隐藏的键绑定(bind)(?)

eclipse - 我可以在 Eclipse 中禁用重构预览吗?