Home » Apache Ant Mkdir Task

Apache Ant Mkdir Task

by Online Tutorials Library

Apache Ant Mkdir Task

This task is used to create a directory. It creates a new directory if directory is not present. It does not create directory if directory is already present.

This task uses the following attributes.

Apache Ant Mkdir Task Attributes

Attribute Description Required
dir the directory to create. Yes

Apache Ant Mkdir Task Example

The above code will create a directory tutoraspire in current project location.

Creating Nested Directory (Sub directory)

The above code will create a subdirectory java inside tutoraspire directory.

You may also like