How to create war files
问题 What are the best practices of creating war files (using eclipse) to run on tomcat? tutorials, links, examples are highly appreciated. 回答1: You can use Ant to set up, compile, WAR, and deploy your solution. <target name="default" depends="setup,compile,buildwar,deploy"></target> You can then execute one click in Eclipse to run that Ant target. Here are examples of each of the steps: Preconditions We'll assume that you have your code organized like: ${basedir}/src : Java files, properties, XML