
Chapter 2 Working with Apache Ant
Generating Java Code and the Ant Build Script
You can generate all the Java code for EJBs, servlets and JSPs along with the Ant build.xml file.
To generate Java code with an Ant build file:
- Select Language→Generate Java Code.
- Specify the directory where you want to generate the Java code.
- [optional] Click the Selection tab to specify the packages, classes, and interfaces you want to generate.
- Click the Options tab and set the value of the "ANT: Generate Ant build.xml file" option to true.
If you are deploying the application to an application server, you may also need to enter certain deployment options, such as the server name, port number, user name, and password.
- [optional] Click the Generated Files tab to preview which files will be generated.
- [optional] Click the Tasks tab to specify any additional generation or deployment actions. You can change the order in which the tasks will be performed by using the arrow tools at the top of this tab.
- Click OK to begin the generation.
Copyright (C) 2006. Sybase Inc. All rights reserved.
|
|