Ant script is the best, that’s what I use for all of my packaging needs: .war, .jar, .ear, etc…If you can write a .cmd file to make a .jar, just name your destination file as .war.