[Index]

set


A job which sets properties in other jobs when it executes.

Property Summary

name A name, can be any text.
stop  
values The thing to set on the property that is given by the key of this mapped property.

Example Summary

Example 1 Setting lots of properties.

Property Detail

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.

stop

AccessREAD_ONLY
RequiredRead Only.

values

Configured ByELEMENT
AccessWRITE_ONLY
RequiredNo, but pointless if not provided.

The thing to set on the property that is given by the key of this mapped property.


Examples

Example 1

Setting lots of properties.

<oddjob>
    <job>
        <sequential>
            <jobs>
                <set>
                    <values>
                        <value key="check.checkBoolean" value="true"/>
                        <value key="check.checkByte" value="127"/>
                        <value key="check.checkChar" value="a"/>
                        <date key="check.checkDate" date="2005-12-25" timeZone="GMT"/>
                        <value key="check.checkDouble" value="9E99"/>
                        <value key="check.checkFloat" value="1.23"/>
                        <value key="check.checkInt" value="1234567"/>
                        <value key="check.checkLong" value="2345678"/>
                        <value key="check.checkShort" value="123"/>
                        <value key="check.checkString" value="hello"/>
                    </values>
                </set>
                <bean id="check" class="org.oddjob.values.CheckBasicSetters"/>
            </jobs>
        </sequential>
    </job>
</oddjob>
This is the configuration for one of the tests.


(c) Rob Gordon 2005 - 2014