Class SoundTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.sound.SoundTask
- All Implemented Interfaces:
- Cloneable
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 SummaryNested ClassesModifier and TypeClassDescriptionclassA class to be extended by any BuildAlert's that require the output of sound.
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
SoundTaskpublic SoundTask()Constructor for SoundTask.
 
- 
- 
Method Details- 
createSuccessadd a sound when the build succeeds- Returns:
- a BuildAlert to be configured
 
- 
createFailadd a sound when the build fails- Returns:
- a BuildAlert to be configured
 
- 
init
- 
execute
 
-