How to create a WAR file using the created NetBeans ant script?

I am trying to set up an automatic build process and I need to get a WAR file to deploy to Tomcat. The project was created in Netbeans, which automatically generates an ant script. I think that when I click "Clean and Build Project" from the menu, it launches a series of ant targets and generates the WAR that I need. So does anyone know which ant is targeting Netbeans when you click on the "Clean and Build Project". My theory is that I can run the same goals on my own. Does this make sense or is there a better way to do this? Thank.

+3
source share
1 answer

You can run the "dist" target to create a war file that you can distribute to Tomcat. If you ant run the Clean and Build equivalent, you can run ant clean dist.

+2
source

Source: https://habr.com/ru/post/1748880/


All Articles