|
How to use DefaultExcludes task |
|
Description
Alters the default excludes for all subsequent processing in the
build, and prints out the current default excludes if desired.
Parameters
| Attribute |
Description |
Required |
| echo |
whether or not to print out the default excludes.(defaults to false) |
attribute "true" required if no
other attribute specified |
| default |
go back to hard wired default excludes |
attribute "true" required if no
if no other attribute is specified |
| add |
the pattern to add to the default excludes |
if no other attribute is specified |
| remove |
remove the specified pattern from the default excludes |
if no other attribute is specified |
Examples
Print out the default excludes
<defaultexcludes echo="true"/>
Print out the default excludes and exclude all *.bak files in
all further processing
<defaultexcludes echo="true" add="**/*.bak"/>
Silently allow several fileset based tasks to operate on emacs
backup files and then restore normal behavior
<defaultexcludes remove="**/*~"/>
(do several fileset based tasks here)
<defaultexcludes default="true"/>
Source: Apache Ant
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.