The task is used to control stream data scanning and to create dependency source code data.

Attributes

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

sourceCodeDataRule Element

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

dependency Element

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:

Type: Description:
USE File used by dependency.
UNKN Unknown source
Yes
path Dependency path. No
referenceType

Dependency reference type. The default reference types are:

Type: Description:
++INCLUDE CA Easytrieve ++INCLUDE and -INC statements
COPY COBOL COPY statements and PL/I %INCLUDE statements
DSPF External file DSPF External file
ILE CL External file ILE CL External file
LF External file LF External file
OPM CL External file OPM CL External file
PF External file PF External file
PGM External file PGM External file
PRTF External file PRTF External file
RPG COPY COBOL COPY statements and PL/I %INCLUDE statements
RPG External Data RPG External Data
RPG External File RPG External File
RPG SQL INLCUDE EXEC SQL INCLUDE statements
RPGLE COPY COBOL COPY statements and PL/I %INCLUDE statements
RPGLE SQL INLCUDE EXEC SQL INCLUDE statements
SQL INCLUDE EXEC SQL INCLUDE statements
SRVPGM Export file SRVPGM Export file
SRVPGM External file SRVPGM External file
Yes

Notes

Examples