Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs

public Class Mkdir

extends Task
Class Inheritance
Imports
java.io.File, org.apache.tools.ant.BuildException, .Project, .Task

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

Field Summary

Modifier and TypeField and Description
private File
dir

our little directory

private static final int
Inherited from org.apache.tools.ant.Task:
targettaskNametaskTypewrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
execute()

Overrides org.apache.tools.ant.Task.execute.

create the directory and all parents
public File

Returns:

File
getDir
()

Get the directory to create.

private boolean
mkdirs(File f)

Attempt to fix possible race condition when creating directories on WinXP.

public void
setDir(File
the directory to be made.
dir
)

the directory to create; required.

Inherited from org.apache.tools.ant.Task:
bindToOwnergetOwningTargetgetRuntimeConfigurableWrappergetTaskNamegetTaskTypegetWrapperhandleErrorFlushhandleErrorOutputhandleFlushhandleInputhandleOutputinitisInvalidloglogloglogmaybeConfigureperformreconfiguresetOwningTargetsetRuntimeConfigurableWrappersetTaskNamesetTaskType

Field Detail

dirback to summary
private File dir

our little directory

MKDIR_RETRY_SLEEP_MILLISback to summary
private static final int MKDIR_RETRY_SLEEP_MILLIS

Constructor Detail

Mkdirback to summary
public Mkdir()

Method Detail

executeback to summary
public void execute() throws BuildException

Overrides org.apache.tools.ant.Task.execute.

create the directory and all parents

Annotations
@Override
Exceptions
BuildException:
if dir is somehow invalid, or creation failed.
getDirback to summary
public File getDir()

Get the directory to create.

Returns:File

File

mkdirsback to summary
private boolean mkdirs(File f)

Attempt to fix possible race condition when creating directories on WinXP. If the mkdirs does not work, wait a little and try again.

setDirback to summary
public void setDir(File dir)

the directory to create; required.

Parameters
dir:File

the directory to be made.