-1

While creating project in eclipse, does Eclipse use Ant as build tool to build the project. I cannot see build.xml in eclipse. Please can anyone explain the connection between eclipse and Ant.

4

2 回答 2

0

不,Eclipse 默认使用它自己的构建设置,这些设置与 Ant 无关。您可以通过右键单击项目并选择属性来配置它们。Ant 和 Eclipse 是分开开发的。

顺便说一下,我认为 Maven 现在是 Java 社区中最流行的构建系统,为此你可以使用 m2e Eclipse 插件让 Eclipse 使用 Mavenpom.xml文件(有点像 Ant 的build.xml,但是对于 Maven) 用于构建。

于 2013-10-26T22:15:20.660 回答
0

如果您想直接将 Eclipse 连接到您预先存在的 ant 构建,您需要使用http://www.eclipse.org/eclipse/ant/ -- Eclipse Platform Ant 项目。

否则,虽然 Eclipse 会乐于将您的 build.xml 视为从您的源代码构建 Eclipse 项目的一部分,但它会使用自己的内部工具完成所有构建。

于 2013-10-26T22:27:38.817 回答