[Index]

variables


This job provides a 'variables' like declaration within Oddjob.

The variables job is like a bean where any property can be set with any value.

Because names are properties, they can only be valid simple property names. 'java.version' is not valid simple property because it is interpreted as a value 'java' that has a property 'version'. To allow these type of properties to be referenced in Oddjob use properties.


Example Summary

Example 1 A simple variable.

Examples

Example 1

A simple variable.

<oddjob>
    <job>
        <sequential>
            <jobs>
                <variables id="vars">
                    <greeting>
                        <value value="Hello World"/>
                    </greeting>
                </variables>
                <echo name="Echo a Greeting">${vars.greeting}</echo>
            </jobs>
        </sequential>
    </job>
</oddjob>


(c) R Gordon Ltd 2005 - Present