Summary
- Assembly
 - NAnt
.Core .dll  - Namespace
 - NAnt
.Core .Tasks  - Interfaces
 - Base Types
 
Syntax
[TaskName("available")]
[Obsolete("Use functions instead.", false)]
public class AvailableTask : Task, IConditional
		Examples
      Sets the myfile.present property to true if the 
      file is available on the filesystem and false if the 
      file is not available.
      
<available type="File" resource="myfile.txt" property="myfile.present" />
    
      
      Sets the build.dir.present property to true 
      if the directory is available on the file system and false 
      if the directory is not available.
      
<available type="Directory" resource="build" property="build.dir.present" />
    
      
      Sets the mono-0.21.framework.present property to true 
      if the Mono 0.21 framework is available on the current system and 
      false if the framework is not available.
      
<available type="Framework" resource="mono-0.21" property="mono-0.21.framework.present" />
    
      
      Sets the net-1.1.frameworksdk.present property to true 
      if the .NET 1.1 Framework SDK is available on the current system and 
      false if the SDK is not available.
      
<available type="FrameworkSDK" resource="net-1.1" property="net-1.1.frameworksdk.present" />
    Remarks
      The specified property is set to true if the 
      requested resource is available at runtime, and false 
      if the resource is not available.
      
| Function | 
|---|
NAnt.Core.Functions.FileFunctions.Exists(System.String) | 
            
        
NAnt.Core.Functions.DirectoryFunctions.Exists(System.String) | 
            
        
NAnt.Core.Functions.FrameworkFunctions.Exists(System.String) | 
            
        
NAnt.Core.Functions.FrameworkFunctions.SdkExists(System.String) | 
            
        
Attributes
| Type | Description | 
|---|---|
| TaskNameAttribute | Indicates that class should be treated as a task. | 
| ObsoleteAttribute | 
Properties
| Name | Value | Summary | 
|---|---|---|
| CustomXmlProcessing | bool | 
									 
    Gets a value indicating whether the element is performing additional
    processing using the  
											NAnt.Core.Element.XmlNode that was used to 
    initialize the element.
    Inherited from Element 
								 | 
							
| FailOnError | bool | 
									 
    Determines if task failure stops the build, or is just reported. 
    The default is  
											true.
    Inherited from Task 
								 | 
							
| IfDefined | bool | 
									 
    If  
											true then the task will be executed; otherwise, 
    skipped. The default is true.
    Inherited from Task 
								 | 
							
| Location | Location | 
									 
    Gets or sets the location in the build file where the element is 
    defined.
     
											Inherited from Element 
								 | 
							
| LogPrefix | string | 
									 
    The prefix used when sending messages to the log.
     
											Inherited from Task 
								 | 
							
| Name | string | 
									 
    The name of the task.
     
											Inherited from Task 
								 | 
							
| NamespaceManager | XmlNamespaceManager | 
									 
    Gets or sets the  
											System.Xml.XmlNamespaceManager.
    Inherited from Element 
								 | 
							
| Parent | Object | 
									 
    Gets or sets the parent of the element.
     
											Inherited from Element 
								 | 
							
| Project | Project | 
									 
    Gets or sets the  
											NAnt.Core.Element.Project to which this element belongs.
    Inherited from Element 
								 | 
							
| Properties | PropertyDictionary | 
									 
    Gets the properties local to this  
											NAnt.Core.Element and the 
    NAnt.Core.Element.Project.
    Inherited from Element 
								 | 
							
| PropertyName | string | 
									 
    The property that must be set if the resource is available.
     
								 | 
							
| Resource | string | 
									 
    The resource which must be available.
     
								 | 
							
| Threshold | Level | 
									 
    Gets or sets the log threshold for this  
											NAnt.Core.Task. By
    default the threshold of a task is NAnt.Core.Level.Debug,
    causing no messages to be filtered in the task itself.
    Inherited from Task 
								 | 
							
| Type | AvailableTask | 
								
									 
    The type of resource which must be present.
     
								 | 
							
| UnlessDefined | bool | 
									 
    Opposite of  
											NAnt.Core.Task.IfDefined. If false 
    then the task will be executed; otherwise, skipped. The default is 
    false.
    Inherited from Task 
								 | 
							
| Verbose | bool | 
									 
    Determines whether the task should report detailed build log messages. 
    The default is  
											false.
    Inherited from Task 
								 | 
							
| XmlNode | XmlNode | 
									 
    Gets or sets the XML node of the element.
     
											Inherited from Element 
								 | 
							
Methods
| Name | Value | Summary | 
|---|---|---|
| CopyTo | 
								void | 
									 
    Copies all instance data of the  
											NAnt.Core.Element to a given
    NAnt.Core.Element.
    Inherited from Element 
								 | 
							
| Evaluate | 
								bool | 
									 
    Evaluates the availability of a resource.
     
								 | 
							
| Execute | 
								void | 
									 
    Executes the task unless it is skipped.
     
											Inherited from Task 
								 | 
							
| ExecuteTask | 
								void | 
									 
    Executes the task.
     
								 | 
							
| Get | 
								XmlNode | 
									 
    Locates the XML node for the specified attribute in either the
    configuration section of the extension assembly or the.project.
     
											Inherited from Task 
								 | 
							
| Get | 
								XmlNode | 
									
											 Inherited from Element 
								 | 
							
| GetLocation | 
								Location | 
									 
    Retrieves the location in the build file where the element is 
    defined.
     
											Inherited from Element 
								 | 
							
| Initialize | 
								void | 
									 Initializes the task. 
											Inherited from Task 
								 | 
							
| Initialize | 
								void | 
									 
    Performs default initialization.
     
											Inherited from Element 
								 | 
							
| Initialize | 
								Element | 
									 
    Initializes the build element.
     
											Inherited from Element 
											static 
								 | 
							
| InitializeElement | 
								void | 
									 
    Derived classes should override to this method to provide extra 
    initialization and validation not covered by the base class.
     
											Inherited from Element 
								 | 
							
| InitializeTask | 
								void | 
									 Initializes the task. 
											Inherited from Task 
								 | 
							
| Initialize | 
								void | 
									 
    Initializes the configuration of the task using configuration 
    settings retrieved from the NAnt configuration file.
     
											Inherited from Task 
								 | 
							
| InitializeXml | 
								void | 
									 
    Initializes all build attributes and child elements.
     
											Inherited from Element 
								 | 
							
| IsLogEnabledFor | 
								bool | 
									 
    Determines whether build output is enabled for the given 
     
											NAnt.Core.Level.
    Inherited from Task 
								 | 
							
| Log | 
								void | 
									 
    Logs a message with the given priority.
     
											Inherited from Task 
								 | 
							
| Log | 
								void | 
									 
    Logs a formatted message with the given priority.
     
											Inherited from Task 
								 | 
							
