
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.
- Select the main directory where you want to generate the Java code.
- Select the packages, classes and interfaces you want to generate in the Selection page.
- Set the value of the option "ANT: Generate Ant build.xml file" to true in the Options page.
- If you want to deploy an application in an application server using Ant, you may need to enter the deployment options like server name, port number, user name, password in the Options page.
There is no need to select any command task in the Tasks page.
- Click OK to generate the Java code and the Ant build.xml file.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|