且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java 项目中的 build.xml

更新时间:2022-03-03 06:47:38

build.xml 通常是一个 ant 构建脚本.

build.xml usually is an ant build script.

它包含构建项目以产生所需输出所需的信息,无论是 Javadoc、已编译的项目还是 JAR 文件.

It contains information necessary to build the project to produce the desired output, be it Javadocs, a compiled project, or a JAR file.

我相信 Eclipse 内置了 ant,因此应该可以通过选择Run As..."和Ant Build"来执行 build.xml.

I believe Eclipse has ant built-in, so it should be possible to execute the build.xml by choosing "Run As..." and "Ant Build".

build.xml 文件,如果是 ant 脚本,则不用于将项目导入 IDE(如 Eclipse 或 Netbeans).构建脚本用于构建项目(或生成一些所需的输出),而不是将项目导入 IDE 的机制.

The build.xml file, if it is an ant script, is not used to import the project into an IDE like Eclipse or Netbeans. A build script is used to build the project (or produce some desired output) rather than an mechanism for importing the project into an IDE.