
Chapter 2 Working with Apache Ant
Running the Ant Build Script
To build an application using Ant, you can use the command:
ant [-buildfile <filename>.xml] [<targetName>]
The following are examples of Ant commands:
- ant help - displays help
- ant –buildfile makefile.xml -
- ant compile - compiles the entire application
- ant javadoc - generates Javadocs
- ant pack - generates the .EAR, .WAR, .JAR files
- ant verify - verifies the generated .EAR file using the j2eeverifier
- ant deploy - deploys the application
- ant –Duser=wxy –Dpassword=wxy deploy - deploys the application, overriding the default user name and password
The available targets depends on the application server.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|