The task is used to delete obsolete or unneeded search path definitions. The default behavior of this task is to delete all search path definitions unless at least one Path 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 search paths that match the criteria are displayed, but not deleted. When this attribute is set to false the search paths that match the criteria are deleted. Valid values are true and false. The default is false.
|
No |
The Path element is specified within the element. The Path element is an optional element used to limit the scope of the system definitions to be deleted. Multiple Path elements may be specified. The following table describes the valid Path element attributes:
| Path Element Attributes | ||
| Attribute | Description | Required |
| match | Specifies a regular expression which is compared to the resource name, and if the pattern matches the name, 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:deleteSearchPaths>
<xt:path match="^delete\.definition$"/>
</xt:deleteSearchPaths>
</target>