The task is used to delete obsolete or unneeded translator definitions. The default behavior of this task is to delete all translator definitions unless at least one TranslatorNameRule is specified as a nested element.
The following table describes the task specific attributes for the task:
| Task Specific Attributes | ||
| Attribute | Description | Required |
| preview |
If this attribute is set to true, the resources that match the criteria are displayed, but not deleted. When this attribute is set to false the resources that match the criteria are deleted. Valid values are true and false. The default is false.
|
No |
The TranslatorNameRule element is specified within the element. The TranslatorNameRule element is an optional element used to limit the scope of the system definitions to be deleted. Multiple TranslatorNameRule elements may be specified. The following table describes the valid TranslatorNameRule element attributes:
| TranslatorNameRule Element Attributes | ||
| Attribute | Description | Required |
| match | Specifies a regular expression which is compared to the resource name, and if the pattern matches, the resource is deleted. | Yes |
The generic nameRule element is equivalent to the LangDefNameRule element and may be used in its place.
<target name="delete" description="Delete definitions">
<xt:deleteTranslators>
<xt:translatorNameRule match="^delete\.definition$"/>
</xt:deleteTranslators>
</target>