FileSets offer an easy and straightforward way to include files. The tag supports
Selectors (see Core selectors) and
PatternSets (see the section called “PatternSet ”). Additionally, you can include/exclude
files in/from a fileset using the
<include>
/<exclude>
tags. In patterns,
one asterisk (*
) maps to a part of a file/directory name within a
directory level. Two asterisks (**
) may include above the "border" of
the directory separator.
Table 181. Attributes for the <fileset>
tag
Name | Type | Description | Default | Required |
---|---|---|---|---|
dir |
String |
The directory, the paths given in
include /exclude are relative
to.
|
n/a | Yes |
defaultexcludes |
Boolean |
Whether default exclusions should be used or not. Default excludes
are: *~ , #*# ,
.#* , %*% ,
CVS , CVS/** ,
.cvsignore , SCCS ,
SCCS/** , vssver.scc ,
.svn , .svn/** ,
._* , .DS_Store ,
.darcs , .darcs/**
|
true |
No |
casesensitive |
Boolean |
The case sensitivity of the file system. | true |
No |
expandsymboliclinks |
Boolean |
Whether to expand/dereference (follow) symbolic links - set to 'true' to emulate old Phing behavior. | false |
No |
includes |
String |
Comma- or space-separated list of patterns of files that must be included; all files are included when omitted. | n/a | No |
includesfile |
String |
The name of a file; each line of this file is taken to be an include pattern. | n/a | No |
excludes |
String |
comma- or space-separated list of patterns of files that must be excluded; no files (except default excludes) are excluded when omitted. | n/a | No |
excludesfile |
String |
The name of a file; each line of this file is taken to be an exclude pattern. | n/a | No |