folderMetadata

The folderMetadata task creates or updates folder metadata.

Folder metadata is stored in Jazz source control management as properties or name value pairs. To designate which folder to process and what properties to create, nest folderMetadataRule elements in the folderMetadata task.

The following table describes folderMetadata attributes.

Attribute Description Required

clean

Specify true to discard all current folder properties. Valid values are true and false. The default is false.

No

projectRoot

Root directory of the zComponent project. The default is the location where the ant script executing the fileMetadataDelete task is located.

No

verbose

Specifies more message output. The default is false.

No

folderMetadataRule Elements

The folderMetadataRule element is specified in the folderMetadata element. Each folderMetadataRule element identifies a folder to process and a property to create or update. At least one folderMetadtaRule element is required.

The following table describes the valid folderMetadtaRule element attributes.

Attribute Description Default Required

match

The regular expression to match against the string (zFolder name) (zFile name). For example, DOBOL/source.cbl.

None

Yes

name

The name of the folder metadata property you want to modify when the regular expression matches the string (zFolder name).

None

Yes

value

The value of the folder metadata property you want to specify. Empty strings are allowed an do not result in a property being deleted. If a value is not specified, the property value will default to an empty string.

None

No

Note: This task must be run in an eclipse environment.

Example

Set a property for a folder
<!-- Folder Metadata Define -->
<target name="folder" description="Folder Metadata Define">

	<im:foldermetadata>
		<im:foldermetadatadeleterule match="ASM$" name="package.folder.fmid" value="01"/>
	</im:foldermetadata>

</target>

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki