The <size>
tag selects files matching a specified size
limit.
<fileset dir="${src}"> <size value="4" when="more"/> </fileset>
Table 209. Attributes for the <size>
selector
Name | Description | Default | Required |
---|---|---|---|
value |
The size of the file which should be tested for. | n/a | Yes |
units |
The units that the value attribute is expressed in. When using the standard single letter SI designations, such as "k","M", or "G", multiples of 1000 are used. If you want to use power of 2 units, use the IEC standard: "Ki" for 1024, "Mi" for 1048576, and so on. The default is no units, which means the value attribute expresses the exact number of bytes. | n/a | No |
when |
Indicates how to interpret the size, whether the files to be selected
should be larger, smaller, or equal to that value. Accepted values are:
less - select files less than the indicated size
more - select files greater than the indicated
size equal - select files this exact size
|
equal | No |