|
This page last changed on Mar 28, 2010 by ccnet-doc-gen.
Direct Dynamic Value
This will replace the value of a property with the value from a parameter. If the user does not enter a parameter value, then the default will be used (when set).
 |
This dynamic value does not perform any formatting, it just directly puts the value into the property. |
Version
Available from version 1.5
Examples
<nant>
<dynamicValues>
<buildArgs>Help</buildArgs>
<directValue property="buildArgs" parameter="CommandToRun" default="Help" />
</dynamicValues>
</nant>
<nant>
<dynamicValues>
<buildArgs>$[CommandToRun|Help]</buildArgs>
</dynamicValues>
</nant>
<project name="Test Project">
<sourcecontrol type="svn">
</sourcecontrol>
<triggers>
<intervalTrigger />
</triggers>
<tasks>
<nant>
<buildArgs>Help</buildArgs>
<dynamicValues>
<directValue property="buildArgs" parameter="CommandToRun" default="Help" />
</dynamicValues>
</nant>
</tasks>
<publishers>
</publishers>
<parameters>
</parameters>
</project>
Configuration Elements
| Element |
Description |
Type |
Required |
Default |
Version |
| default |
The default value to use if nothing is set in the parameters. |
String |
No |
n/a |
1.5 |
| parameter |
The name of the parameter to use. This must be the same name as what is in the parameters configuration. |
String |
Yes |
n/a |
1.5 |
| property |
The name of the property to set. This must be the same name as what is in the task/publisher/trigger configuration. |
String |
Yes |
n/a |
1.5 |
 | Automatically Generated
Documentation generated on Sunday, 28 Mar 2010 at 8:03:18 PM
Using assembly version 1.6.7027.1 |
|