【问题标题】:Import Ant Project from Github从 Github 导入 Ant 项目
【发布时间】:2015-06-25 21:09:09
【问题描述】:

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

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

【问题讨论】:

    标签: eclipse git tomcat github ant


    【解决方案1】:

    尝试以下方法:

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

    【讨论】:

    • @aspiring-sarge 我已经尝试了这些步骤,但问题是它没有作为java项目导入。
    • @KodeCeeper:我添加了更多细节,做了一些改动,并在另一个同时包含 git 和构建文件但没有 .project 文件的存储库上对其进行了测试。这有帮助吗?
    猜你喜欢
    • 2017-12-09
    • 1970-01-01
    • 2017-01-05
    • 2016-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-29
    • 2016-11-04
    相关资源
    最近更新 更多