NAnt SDK Documentation - v0.92

FileSet.FailOnEmpty Property

When set to true, causes the fileset element to throw a ValidationException when no files match the includes and excludes criteria. The default is false.

[Visual Basic]
<BooleanValidator, _  TaskAttribute(Required:=False, Name:="failonempty", ExpandProperties:=True, ProcessXml:=True)>
Public Property FailOnEmpty As Boolean
[C#]
[BooleanValidator]
[TaskAttribute(Required=False, Name="failonempty", ExpandProperties=True, ProcessXml=True)]
public bool FailOnEmpty {get; set;}

See Also

FileSet Class | NAnt.Core.Types Namespace