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.


Example 1

A simple variable.

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

(c) R Gordon Ltd 2005 - Present