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

Basic example
<nant>
  <!-- Omitted for brevity -->
  <dynamicValues>
    <buildArgs>Help</buildArgs>
    <directValue property="buildArgs" parameter="CommandToRun" default="Help" />
  </dynamicValues>
</nant>
Shorthand example
<nant>
  <!-- Omitted for brevity -->
  <dynamicValues>
    <buildArgs>$[CommandToRun|Help]</buildArgs>
  </dynamicValues>
</nant>
Example in context
<project name="Test Project">
  <sourcecontrol type="svn">
    <!-- Omitted for brevity -->
  </sourcecontrol>
  <triggers>
    <intervalTrigger />
  </triggers>
  <tasks>
    <nant>
      <!-- Omitted for brevity -->
      <buildArgs>Help</buildArgs>
      <dynamicValues>
        <directValue property="buildArgs" parameter="CommandToRun" default="Help" />
      </dynamicValues>
    </nant>
    <!-- Omitted for brevity -->
  </tasks>
  <publishers>
    <!-- Omitted for brevity -->
  </publishers>
  <parameters>
    <!-- Omitted for brevity -->
  </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

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