<delete>
The <delete> task gives you the ability to delete files and hence clean up after yourself. This is typically used to delete class files before a fresh build. The task uses the typical set of attributes (see Table 4.28) to specify the set of files to delete.
Attributes | Description |
---|---|
Required | |
dir (required if file and fileset elements are not specified) | The name of the directory to delete files from. |
file (required if dir and fileset elements are not specified) | The name of the file to be deleted. |
Optional | |
defaultexcludes | If false, default excludes will not be used. Defaults to true. |
excludes | A comma-separated list of patterns of files to be excluded. The default is not to exclude any files (except ... |
Get Ant Developer’s Handbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.