It seems like it's a fairly common thing to do. I want to create a new Java application that does not have any existing source files, but be able to edit the Ant scripts.
这似乎是一件相当普遍的事情。我想创建一个新的Java应用程序,它没有任何现有的源文件,但能够编辑Ant脚本。
1 个解决方案
#1
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.
您应该能够编辑Netbeans作为新项目的一部分生成的任何Ant文件。它们存储在项目文件夹(包含nbproject目录的文件夹)中作为build.xml,后者又引用了build-impl.xml。
The idea is that you can edit build.xml in order to override the Ant targets in build-impl.xml.
我们的想法是您可以编辑build.xml以覆盖build-impl.xml中的Ant目标。
#1
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.
您应该能够编辑Netbeans作为新项目的一部分生成的任何Ant文件。它们存储在项目文件夹(包含nbproject目录的文件夹)中作为build.xml,后者又引用了build-impl.xml。
The idea is that you can edit build.xml in order to override the Ant targets in build-impl.xml.
我们的想法是您可以编辑build.xml以覆盖build-impl.xml中的Ant目标。