Chapter 8 Extended Model Definitions Reference Guide
The Commands category allows you to define generation commands. The generation commands can be executed at the end of the generation, after the generation of all files.
The text defining the code of the command is written using the Generation Template Language. (GTL). It uses environment variables that may correspond to executables. You can also use macros within your commands.
For more information on the GTL, see chapter Generation Reference Guide.
All commands written in the Commands category are available after creation in the Tasks page of the Generation dialog box where they can be executed at the end of the generation. A task is a list of commands to be executed after generation. Each task appears in the Tasks page of the Generation dialog box beside the name of the extended model definition. You can select them and use the arrows to set a generation order among these lists of commands.
A command entry that is not referenced in a task entry cannot be executed during generation. When a task is selected in the Tasks page of the Generation dialog box, the commands included in the task are retrieved and the template associated with the command is evaluated and executed.
In the following example, three tasks are defined in the WebLogic extended model definition; the other tasks proceed from the object language of the model (Java):
You must create commands before tasks.
To create a command:
To create a task:
Copyright (C) 2005. Sybase Inc. All rights reserved. |