
Chapter 7 Deploying Web Applications in Apache Tomcat
Building, Packaging and Deploying the Web Application Using Ant
To run the Ant build script, you can use the command:
ant [-buildfile <filename>.xml] [<targetName>]
The following other commands may be useful:
- To display help: ant help
- To compile the entire application: ant compile
- To generate Javadoc: ant javadoc
- To generate the .WAR files: ant pack
- To verify the generated .WAR file using the j2eeverifier: ant verify
- To deploy a web application in Tomcat: ant deploy
- To undeploy a web application from Tomcat: ant undeploy
- To install a web application in Tomcat: ant install
- To remove a web application from Tomcat: ant remove
- To reload an installed web application in Tomcat: ant reload
- To start Tomcat: ant start
- To stop Tomcat: ant stop
- To display the installed web applications in Tomcat: ant list
You can overwrite the url, username, password values using the –D option.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|