This page last changed on Nov 30, 2010 by ccnet-doc-gen.

Conditional Task

Checks to see if a condition is true before the contained tasks run.

Version

Available from version 1.6

Examples

<conditional>
  <conditions>
    <!-- Conditions -->
  </conditions>
  <tasks>
    <!-- Tasks to run if conditions pass -->
  </tasks>
  <elseTasks>
    <!-- Tasks to run if conditions fail -->
  </elseTasks>
</conditional>

Configuration Elements

Element Description Type Required Default Version
description Description used for the visualisation of the buildstage, if left empty the process name will be shown. String No The task/publisher name. 1.6
dynamicValues The dynamic values to use for the task. Dynamic Values array No None 1.6
elseTasks The tasks to run if conditions evaluates to false. Task And Publisher Blocks array No None 1.6
environment A set of environment variables set for commands that are executed.
Each variable should be specified as
<variable name="name" value="value" />

.
Environment Variable array No    
conditions The conditions to check.
These conditions must all pass in order for the main tasks to run. Use an Or Condition when only one condition is required.
Task Condition Blocks array Yes n/a 1.6
tasks The tasks to run if conditions evaluates to true. Task And Publisher Blocks array No None 1.6

Notes

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

Automatically Generated

Documentation generated on Tuesday, 30 Nov 2010 at 10:25:49 AM
Using assembly version 1.6.7805.1

Document generated by Confluence on Jan 23, 2011 08:52