English 中文(简体)
ANT Tasks - MkDir
  • 时间:2024-11-03

Apache Ant Tasks - MkDir


Previous Page Next Page  

Description

Mkdir task creates a directory. Also non-existent parent directories are created, when necessary. Does nothing if the directory already exists.

Properties

Sr.No Attributes & Description
1

DIR

The directory to create.

Example

Usage

Create build.xml with the following content −


<?xml version="1.0"?>
<project name="TutorialPoint" default="info">
   <mkdir dir="dist"/>
   <target name="info">
   </target>
</project>

Output

Running Ant on the above build file produces the following output −


F:	utorialspointant>ant
Buildfile: F:	utorialspointantuild.xml
   [mkdir] Created dir: F:	utorialspointantdist

info:

BUILD SUCCESSFUL
Total time: 0 seconds
Advertisements