且构网

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

如何在没有现有源文件的情况下创建新的 Java 项目,并能够使用 NetBeans 手动编辑 Ant 脚本

更新时间:2023-10-03 17:28:22

您应该能够编辑 Netbeans 作为新项目的一部分生成的任何 Ant 文件.它们作为 build.xml 存储在项目文件夹(包含 nbproject 目录的文件夹)中,后者又引用了 build-impl.xml.

You should be able to edit any Ant file that Netbeans generates as part of a new project. They're stored in the project folder (the one that contains the nbproject directory) as build.xml, which in turn references build-impl.xml.

这个想法是您可以编辑 build.xml 以覆盖 build-impl.xml 中的 Ant 目标.

The idea is that you can edit build.xml in order to override the Ant targets in build-impl.xml.