
Chapter 2 Resource Files and the Public Metamodel
Generation category
The Generation category contains categories and entries to define and activate a generation process:
- Commands - contains generation commands, which can be executed at the end of the generation process, after the generation of all files. Commands are written in GTL (see the "Generation Reference Guide" chapter), and must be included within tasks (see below) to be evoked.
- Options – contains options, available on the Options tab of the Generation dialog box, the values of which can be tested by generation templates or commands. You can create options that take boolean, string, or list values. The value of an option may be accessed in a template using the following syntax:
'%' 'GenOptions.'<option-name> '%'
For example, for a boolean option named GenerateComment, %GenOptions.GenerateComment% will evaluate to either true or false in a template, depending on the value specified in the Generation dialog Options tab.
- Tasks – contains tasks, available on the Tasks tab of the Generation dialog box, and which contain lists of generation commands (see above). When a task is selected in the Tasks tab, the commands included in the task are retrieved and their templates evaluated and executed.
Copyright (C) 2008. Sybase Inc. All rights reserved.
|
|