B.27 MkdirTask

Creates a directory, including any necessary but non-existent parent directories. Does nothing if the directory already exists.

Table B.28: Attributes

dirStringThe directory that is to be created.n/aYes
modeIntegerThe mode to create the directory with.From umaskNo

B.27.1 Examples

<!-- Create a temp directory -->
<mkdir dir="/tmp/foo" />

<!-- Using mkdir with a property -->
<mkdir dir="${dirs.install}/tmp" />