Chapter 7 Creating J2EE Applications for IBM WebSphere 5.0


Building and Deploying J2EE Applications Using Ant

You can use an IDE or text editor to modify the Java source code, and then use the generated Ant build.xml to build, package and deploy J2EE application into WebSphere server.

Steps To generate an Ant build.xml file:

  1. Ensure that the WAS_HOME environment variable is defined to indicate the WebSphere server home directory.
  2. Ensure that the ANT_HOME environment variable is defined to indicate the Apache Ant home directory.
  3. Select Language→Generate Java Code.
  4. In the Options tab, enable Ant generation.

When you generate the Java code, an Ant build.xml file will be generated. You can use an IDE or text editor to modify the Java source code then use the Ant build.xml file to build, package and deploy into WebSphere server.

For more information on how to generate the Ant build.xml file, see the Ant chapter.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.