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) |
Parameters
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" />
Requirements
- Assembly
- NAnt
.Core .dll - Namespace
-
NAnt
.Core .Tasks