Build rules
Build rules compile each file in a project. Only one build rule can be active for a specific file type.
Build rules follow this hierarchy:
- Project - If a relevant build rule is found under Project, it is used. To edit, right-click on the Project view and select Edit Build Rules.
- Specific - If no relevant build rule is found under Project, then the build rule under Specific is used. To edit, select .
- Global - if no relevant build rule is found under Project or Specific, then the build rule under Global is used. To edit, select .
- Default - if no relevant build rule is found under Project, Specific, or Global, then the Default build rule is used.
Only one build rule can be active for a specific file type.
Build rules can use predefined node variables.
Example: report.4rdj
The process used by Project Manager to compile a file called report.4rdj
is:
- Project Manager first searches the language to be used as defined in the parent application or library node.
- Project Manager determines the MIME type of this file; it is "application/generostudio-4rdj".
- Project Manager looks for a corresponding build rule in the Project build rules. After searching the Project build rules, if no rule is found that handles the "application/generostudio-4rdj" MIME type, it searches the Specific build rules, then the Global build rules, and finally in the Default build rules.
- Once a build rule has been identified, Project Manager executes the commands defined in the build rule after replacing the variables.
- If no build rule is found, the file is skipped and the next one is processed.