org.oddjob.io
Class AppendType

java.lang.Object
  extended by org.oddjob.io.AppendType
All Implemented Interfaces:
ArooaValue

public class AppendType
extends Object
implements ArooaValue

Description

Specify a file for appending to.

Example

Append a line to a file.
<oddjob id="this">
    <job>
        <sequential>
            <jobs>
                <variables id="vars">
                    <myFile>
                        <append>
                            <file>
                                <file file="${this.args[0]}/messages.txt"/>
                            </file>
                        </append>
                    </myFile>
                </variables>
                <echo>Hello World
                    <output>
                        <value value="${vars.myFile}"/>
                    </output>
                </echo>
                <echo>Goodbye World
                    <output>
                        <value value="${vars.myFile}"/>
                    </output>
                </echo>
            </jobs>
        </sequential>
    </job>
</oddjob>
Author:
Rob Gordon.

Nested Class Summary
static class AppendType.Conversions
           
 
Constructor Summary
AppendType()
           
 
Method Summary
 File getFile()
           
 void setFile(File file)
          Set the file.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppendType

public AppendType()
Method Detail

getFile

public File getFile()

setFile

public void setFile(File file)
Set the file.

Parameters:
file - The file.

toString

public String toString()
Overrides:
toString in class Object