When I create a new project in Netbeans, it generates a build.xml file which it will use to compile and run the project, along with other stuff in folder nbproject.

Now, I want to have my very own build.xml file that I will use to compile to project on the server side. [Some](https://stackoverflow.com/questions/912522/run-netbeans-project-just-with-ant "Run NetBeans project just with ant") [guys](https://stackoverflow.com/questions/984605/how-do-i-create-a-new-java-project-without-existing-source-files-with-the-abili "How do I create a new Java project, without existing source files, with the ability to manually edit the Ant script using NetBeans") have tried to use the generated build file both in Netbeans and with pure Ant, but it's more trouble than it's worth.

I want to rename the auto-generated file to `nb-build.xml` and have my own build.xml file that Netbeans will not touch.

How do I achieve that ?