Summary
Determines whether FileSet contains any files.
Syntax
[Function("has-files")]
public bool HasFiles(string fileset)
Examples
Perform conditional processing on a fileset if it contains files.
<fileset id="test.fileset">
<include name="**/*.cs">
</fileset>
<if test="${fileset::has-files('test.fileset')}">
<dostuff... />
</if>
Attributes
| Type |
Description |
| Function |
|
Parameters
| Name |
Type |
Description |
| fileset |
string |
The id of the fileset to check. |
Return Value
| Type |
Description |
| bool |
true if the FileSet contains one or more files, otherwise false. |