You should be able to edit any Ant file that Netbeans generates as part of a new project. They are stored in the project folder (the one that contains the nbproject directory) as build.xml, which, in turn, refers to build-impl.xml.
The idea is that you can edit build.xml to override Ant targets in build-impl.xml.
source share