如何创建一个新的Java项目,没有现有的源文件,您使用NetBeans手动编辑Ant脚本的能力

问题描述:

现在看来似乎是做一个相当普遍的事情。我想创建一个没有任何现有的源文件,一个新的Java应用程序,但是可以编辑Ant脚本。

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.

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

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-impl.xml中的Ant目标build.xml文件进行编辑。

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