File Exists Condition

Checks if a file exists.

Version

Available from version 1.6

Examples

Basic example

1<fileExistsCondition file="readme.txt" />

Example in context

 1<conditional>
 2  <conditions>
 3    <fileExistsCondition>
 4      <file>readme.txt</file>
 5    </fileExistsCondition>
 6  </conditions>
 7  <tasks>
 8    <!-- Tasks to perform if condition passed -->
 9  </tasks>
10  <elseTasks>
11    <!-- Tasks to perform if condition failed -->
12  </elseTasks>
13</conditional>

Configuration Elements

Element Description Type Required Default Version
description A description of the condition. String No none 1.6
file The file to check for.
If the file is relative then it will be relative to the working directory.
String Yes n/a 1.6

Notes

This condition has been kindly supplied by Lasse Sjørup. The original project is available from [[http://ccnetconditional.codeplex.com/]].

Automatically Generated

Documentation generated on Monday, 26 May 2014 at 7:18:03 AM