May 2002
Intermediate to advanced
288 pages
10h 50m
English
mkdir
Creates a directory if it does not already exist. Also creates parent directories as needed.
dir (all, File, Y)The directory to create.
None.
This task is commonly used in a prepare target
that other targets depend on. This ensures that necessary destination
directories are created before other targets are executed.
<target name="prepare"><mkdir dir="${builddir}"/><mkdir dir="${deploydir}/docs"/></target> <target name="compile" depends="prepare"> ... </target>
See the delete task for information on removing files and directories.
Read now
Unlock full access