简体   繁体   English

Netbeans 在 Linux 上构建 Ant 项目

[英]Netbeans buiding Ant Project on Linux

There is a legacy project in our team, that has build.xml file, dist folder, nbproject etc in its project's folder structure.我们团队中有一个遗留项目,其项目的文件夹结构中有 build.xml 文件、dist 文件夹、nbproject 等。 To build it on Linux machine they use Netbeans 8.2 IDE.为了在 Linux 机器上构建它,他们使用 Netbeans 8.2 IDE。 There is no Ant installed on that machine I confirmed with ant -v command.我用 ant -v 命令确认的那台机器上没有安装 Ant。 I want to understand that :我想明白:

  1. Is Netbeans internally using ANT to build this project ? Netbeans 是否在内部使用 ANT 来构建这个项目?
  2. If, yes then how ?如果是,那么如何?
  3. Where in Netbeans I can find the ANT configurations to proof/confirm that its ANT project and Netbeans internally using ant to build it.在 Netbeans 中,我可以找到 ANT 配置来证明/确认其 ANT 项目和 Netbeans 在内部使用 ant 来构建它。
  1. Yes是的

  2. Ant is embedded in the Netbeans installation directory. Ant 嵌入在 Netbeans 安装目录中。 On my Netbeans 11 it's in <Netbeans_install_dir>/extide/ant .在我的 Netbeans 11 上,它位于<Netbeans_install_dir>/extide/ant

  3. In Netbeans IDE, menu Tools/Options/Java and there should be an Ant tab which shows the current path to Ant -which can be changed.在 Netbeans IDE 中,菜单Tools/Options/Java应该有一个 Ant 选项卡,显示 Ant 的当前路径 - 可以更改。

Netbeans official site has described about the build tools it is using internally. Netbeans 官方网站描述了它在内部使用的构建工具。
Regarding ANT it says:关于 ANT 它说:
The default NetBeans IDE project system is built directly on top of the Ant build system.默认的 NetBeans IDE 项目系统直接构建在 Ant 构建系统之上。 All of the project commands, such as "Build Project" and "Run File in Debugger", call targets in the project's Ant script.所有项目命令,例如“构建项目”和“在调试器中运行文件”,都调用项目的 Ant 脚本中的目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM