Download O`Reilly - Ant The Definitive Guide

Transcript
Ant: The Definitive Guide
Content
None.
Example Usage
Send email with build results:
<property name="my.mailhost" value="mail.oreilly.com"/>
<mail from="[email protected]"
tolist="[email protected]"
subject="Build Results"
mailhost="${my.mailhost}"
files="buildlog.txt"/>
See Also
Use the mimemail optional task listed in Chapter 8 when binary attachments are required.
mkdir
all
org.apache.tools.ant.taskdefs.Mkdir
Creates a directory if it does not already exist. Also creates parent directories as needed.
Attributes
dir (all, File, Y)
The directory to create.
Content
None.
Example Usage
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 Also
See the delete task for information on removing files and directories.
175