Package org.oddjob.jobs
Class EchoJob
java.lang.Object
org.oddjob.jobs.EchoJob
- All Implemented Interfaces:
Serializable,Runnable
- Author:
- rob
- See Also:
Description
Echo text to the console.Example
Hello World.
<oddjob>
<job>
<echo name="Greeting Job">Hello World</echo>
</job>
</oddjob>
Hello World Twice.
<oddjob>
<job>
<sequential>
<jobs>
<echo id="first">Hello World Twice!</echo>
<echo>${first.text}</echo>
</jobs>
</sequential>
</job>
</oddjob>
Echo a file list.
<oddjob id="this">
<job>
<echo>
<lines>
<files files="${this.args[0]}/test/io/reference/*.txt"/>
</lines>
</echo>
</job>
</oddjob>
-
Constructor Details
-
EchoJob
public EchoJob()
-
-
Method Details
-
getName
Get the name.- Returns:
- The name.
-
setName
Set the name- Parameters:
name- The name.
-
getText
Get the text.- Returns:
- The text.
-
setText
Set the text.- Parameters:
text- The text.
-
getLines
-
setLines
-
getOutput
-
setOutput
-
run
public void run() -
toString
-