Plays a sound-file at the end of the build, according to whether the build failed or succeeded. You can specify either a specific sound-file to play, or, if a directory is specified, the <sound> task will randomly select a file to play. Note: At this point, the random selection is based on all the files in the directory, not just those ending in appropriate suffixes for sound-files, so be sure you only have sound-files in the directory you specify.
Unless you are running on Java 1.3 or later, you need the Java Media Framework on the classpath (javax.sound).
Nested Elements
success
Specifies the sound to be played if the build succeeded.
fail
Specifies the sound to be played if the build failed.