The task is used to control stream data scanning and to create dependency source code data.
The following table describes the task specific attributes for the task:
| Task Specific Attributes | ||
| Attribute | Description | Required |
| projectRoot | Root directory of the component project. The default is to use the location of the build script. Specifying a path that is relative to the location of the build script is acceptable. | No |
| scan |
Specifies whether or not source code data scanning is enabled. Valid values are true and false. The default is true.
|
No |
The sourceCodeDataRule element is specified within the element. Each sourceCodeDataRule element identifies a file to process. At least one sourceCodeDataRule element is required. The following table describes the valid sourceCodeDataRule attribute values:
| sourceCodeDataRule Element Attributes | ||
| Attribute | Description | Required |
| match |
Specify a regular expression for the file name that is the target of this rule. This expression is used to match the file path string "folder/file". For example, the match pattern "^.*/EPSCSMRT\.cbl$" will match on any file named "EPSCSMRT.cbl" in any folder.
|
Yes |
The dependency element is specified within the sourceCodeDataRule element. Each dependency element defines dependency data for the matched file. If no dependency elements are specified, the task deletes all user-defined dependency data for the matched file. The following table describes the valid dependency attribute values:
| dependency Element Attributes | ||||||||||||||||||||||||||||||||||||||||
| Attribute | Description | Required | ||||||||||||||||||||||||||||||||||||||
| logicalName | Dependency logical name. This is typically the name of the included file without the file extension. | Yes | ||||||||||||||||||||||||||||||||||||||
| fileType |
Dependency file type. The default file types are:
|
Yes | ||||||||||||||||||||||||||||||||||||||
| path | Dependency path. | No | ||||||||||||||||||||||||||||||||||||||
| referenceType |
Dependency reference type. The default reference types are:
|
Yes | ||||||||||||||||||||||||||||||||||||||
<xt:sourcecodedata>
<xt:sourcecodedatarule match="QLNKSRC/MLGRPTS\.SRVPGMSRC$">
<xt:dependency
logicalName="MLGRPTR"
fileType="USE"
path="*LIBL/MLGRPTR OBJTYPE(*MODULE)"
referenceType="SRVPGM External File"/>
</xt:sourcecodedatarule>
</xt:sourcecodedata>