org.apache.tools.ant.taskdefs

Class Mkdir


public class Mkdir
extends Task

Creates a given directory. Creates a directory and any non-existent parent directories, when necessary
Since:
Ant 1.1

Field Summary

Fields inherited from class org.apache.tools.ant.Task

description, location, target, taskName, taskType, wrapper

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

void
execute()
create the directory and all parents
void
setDir(File dir)
the directory to create; required.

Methods inherited from class org.apache.tools.ant.Task

execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

execute

public void execute()
            throws BuildException
create the directory and all parents
Overrides:
execute in interface Task
Throws:
BuildException - if dir is somehow invalid, or creation failed.

setDir

public void setDir(File dir)
the directory to create; required.
Parameters:
dir - the directory to be made.

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.