The task is used to create or update file metadata. File metadata is stored in Jazz Source Control Management (SCM) as properties or name-value pairs. To designate which files to process and what properties to create, nest FileMetadataRule elements within the task element.

Attributes

The following table describes the task specific attributes for the task:

Task Specific Attributes
Attribute Description Required
projectRoot Root directory of the zComponent project. The default is the location where the Ant script executing the task is located. No
verbose Specifies more message output. Valid values are true and false. The default is false. No

FileMetadataRule Element

The FileMetadataRule element is specified within the element. Each FileMetadataRule element identifies a file to process and a property to create or update. At least one FileMetadataRule element is required. The following table describes the valid FileMetadataRule attribute values:

FileMetadataRule Element Attributes
Attribute Description Required
match The regular expression to match against the string "zFolder_name/zFile_name". For example: match=".*/source\.cbl" for the file "COBOL/source.cbl". Yes
name The name of the file metadata property you want to modify when the regular expression matches the file name. Yes
value The value of the file metadata property. Empty strings are allowed and do not result in a property being deleted. If a value is not specified, the property value will default to an empty string. No

LineDelimiterRule Element

The LineDelimiterRule element is specified within the element. Each FileMetadataRule element identifies a file to process and a line delimiter to set. The following table describes the valid FileMetadataRule attribute values:

LineDelimiterRule Element Attributes
Attribute Description Required
match The regular expression to match against the string "zFolder_name/zFile_name". For example: match=".*/source\.cbl" for the file "COBOL/source.cbl". Yes
value

The line delimiter to use for the file. Valid values are:

Value: Description:
None No line delimiter (binary file).
CR Carriage return
LF Line feed
CRLF Carriage return, line feed
Platform Use a line delimiter compatible with the client platform.
Yes

Notes

Examples