| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.optional.sound.SoundTask
SoundTask | public class SoundTask extends Task (Code) | | 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
|
Inner Class :public class BuildAlert | |
Constructor Summary | |
public | SoundTask() Constructor for SoundTask. |
SoundTask | public SoundTask()(Code) | | Constructor for SoundTask.
|
createFail | public BuildAlert createFail()(Code) | | add a sound when the build fails
a BuildAlert to be configured |
createSuccess | public BuildAlert createSuccess()(Code) | | add a sound when the build succeeds
a BuildAlert to be configured |
execute | public void execute()(Code) | | Execute the task.
|
init | public void init()(Code) | | Initialize the task.
|
|
|