TypeFactory.

ScanDir(string, Task, bool) Method

Summary

Scans the path for any task assemblies and adds them.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Containing Type
TypeFactory

Syntax

[ReflectionPermission(SecurityAction.Demand, Flags = ReflectionPermissionFlag.NoFlags)]
public static void ScanDir(string path, Task task, bool failOnError)

Attributes

Type Description
ReflectionPermissionAttribute

Parameters

Name Type Description
path string The directory to scan in.
task Task The NAnt.Core.Task which will be used to output messages to the build log.
failOnError bool bool indicating whether scanning of the directory should halt on first error.

Return Value

Type Description
void