Chapter 2 Working with Apache Ant


Customizing the Ant Build Script Generation

The Ant build script generation in PowerDesigner is entirely defined in the Java language definition file (Java XOL) and the application server specific Extended Model Definition file.

The Java XOL defines the generation templates for common properties, tasks and targets. It also defines empty custom templates. The custom templates can be overridden in the application server specific XEM.

The application server specific XEM can override the custom templates to generate a complete build.xml including standard targets and custom targets.

To customize the Ant build.xml generation, you could customize the Java XOL or the server specific XEM.

Steps To customize the Java XOL:

  1. Select Tools→Resources→Object Languages.
  2. Double-click on the Java XOL.
  3. Use the XOL editor to modify the Java XOL:


    The Ant specific generated file, generation templates are defined under the Model metaclass.

Steps To customize the server specific XEM:

  1. Select Tools→Resources→Extended Model Definitions→Object-Oriented Models.
  2. Double-click on an application server extended model definition in the list:
  3. Use the editor to modify the extended model definition:


    The Ant specific generated file, generation templates are defined under the Model metaclass.

 


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