NAnt SDK Documentation - v0.92

PathSet Class

Paths are groups of files and/or directories that need to be passed as a single unit. The order in which parts of the path are specified in the build file is retained, and duplicate parts are automatically suppressed.

For a list of all members of this type, see PathSet Members.

System.Object
   NAnt.Core.Element
      NAnt.Core.DataTypeBase
         NAnt.Core.Types.PathSet

[Visual Basic]
<Serializable, _  Serializable, _  ElementName(Name:="path")>
Public Class PathSet
    Inherits DataTypeBase
[C#]
[Serializable]
[Serializable]
[ElementName(Name="path")]
public class PathSet : DataTypeBase

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

Define a global <path> that can be referenced by other tasks or types.

  
      <path id="includes-path">
          <pathelement path="%INCLUDE%" />
          <pathelement dir="${build.dir}/include" />
      </path>
  

Requirements

Namespace: NAnt.Core.Types

Assembly: NAnt.Core (in NAnt.Core.dll)

See Also

PathSet Members | NAnt.Core.Types Namespace