org.oddjob.io
Class MkdirJob

java.lang.Object
  extended by org.oddjob.io.MkdirJob
All Implemented Interfaces:
Serializable, Runnable

public class MkdirJob
extends Object
implements Runnable, Serializable

Description

Make a directory, including any necessary but nonexistent parent directories. If there already exists a file with specified name or the directory cannot be created then an exception is flagged. If the directory exists alread it is left intact.

Example

Make a directory including missing parent directories.
<oddjob id="this">
    <job>
        <mkdir dir="${this.args[0]}/a/b/c"/>
    </job>
</oddjob>
See Also:
Serialized Form

Constructor Summary
MkdirJob()
           
 
Method Summary
 File getDir()
          Get the file.
 String getName()
          Get the name.
 void run()
           
 void setDir(File file)
          Set the file.
 void setName(String name)
          Set the name
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MkdirJob

public MkdirJob()
Method Detail

getName

public String getName()
Get the name.

Returns:
The name.

setName

public void setName(String name)
Set the name

Parameters:
name - The name.

getDir

public File getDir()
Get the file.

Returns:
The file.

setDir

public void setDir(File file)
Set the file.

Parameters:
The - file.

run

public void run()
Specified by:
run in interface Runnable

toString

public String toString()
Overrides:
toString in class Object