variables

Description

This job provides a 'variables' like declaration within Oddjob. Its child elements are types with a name and a value. The values are available as properties of this job.

Properties

NameDescriptionRequired
name A name, can be any text. No.

Elements

Any type

Required: No.

Any type. In addition to the properties of the type (documented with each type) a name is required which is the name the variable will have.

Example

 <oddjob>
   <sequential>
     <variables id="vars" name="Define a variable">
       <value name="greeting" value="Hello World"/>
     </variables>
     <echo name="Issue a greeting." text="${vars.greeting}" />
   </sequential>
 </oddjob>
 


(c) Rob Gordon 2005