FileSetFunctions.

GetFileCount(string) Method

Summary

Determines the number of files within a FileSet.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Functions
Containing Type
FileSetFunctions

Syntax

[Function("get-file-count")]
public int GetFileCount(string fileset)

Examples

Define a fileset and check the number of files in it.

    <fileset id="test.fileset">
    <include name="**/*.cs">
</fileset>
<echo message="FileSet contains ${fileset::get-file-count('test.fileset')} files." />

Attributes

Type Description
Function

Parameters

Name Type Description
fileset string The id of the FileSet to scan.

Return Value

Type Description
int The number of files included in the FileSet