[Index]

echo


Echo text to the console.

Property Summary

lines Lines of text to display.
name A name, can be any text.
output Where to send the output.
text The text to display.

Example Summary

Example 1 Hello World.
Example 2 Hello World Twice.
Example 3 Echo a file list.

Property Detail

lines

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo, if there is no text and no lines only a blank line will be printed. printed.

Lines of text to display.

name

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredNo.

A name, can be any text.

output

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo, defaults to the console.

Where to send the output.

text

Configured ByTEXT
AccessREAD_WRITE
RequiredNo, if there is no text and no lines only a blank line will be printed.

The text to display.


Examples

Example 1

Hello World.

<oddjob>
    <job>
        <echo name="Greeting Job">Hello World</echo>
    </job>
</oddjob>

Example 2

Hello World Twice.

<oddjob>
    <job>
        <sequential>
            <jobs>
                <echo id="first">Hello World Twice!</echo>
                <echo>${first.text}</echo>
            </jobs>
        </sequential>
    </job>
</oddjob>

Example 3

Echo a file list.

<oddjob id="this">
    <job>
        <echo>
            <lines>
                <files files="${this.args[0]}/test/io/reference/*.txt"/>
            </lines>
        </echo>
    </job>
</oddjob>


(c) R Gordon Ltd 2005 - Present