org.apache.tools.ant.taskdefs.optional.sound

Class SoundTask

public class SoundTask extends Task

Plays a sound file at the end of the build, according to whether the build failed or succeeded. There are three attributes to be set: source: the location of the audio file to be played duration: play the sound file continuously until "duration" milliseconds has expired loops: the number of times the sound file should be played until stopped I have only tested this with .WAV and .AIFF sound file formats. Both seem to work fine. plans for the future: - use the midi api to define sounds (or drum beat etc) in xml and have Ant play them back
Nested Class Summary
classSoundTask.BuildAlert
A class to be extended by any BuildAlert's that require the output of sound.
Constructor Summary
SoundTask()
Method Summary
SoundTask.BuildAlertcreateFail()
add a sound when the build fails
SoundTask.BuildAlertcreateSuccess()
add a sound when the build succeeds
voidexecute()
voidinit()

Constructor Detail

SoundTask

public SoundTask()

Method Detail

createFail

public SoundTask.BuildAlert createFail()
add a sound when the build fails

createSuccess

public SoundTask.BuildAlert createSuccess()
add a sound when the build succeeds

execute

public void execute()

init

public void init()
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.