java.lang.Cloneablepublic class SoundTask extends Task
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| Modifier and Type | Class | Description |
|---|---|---|
class |
SoundTask.BuildAlert |
A class to be extended by any BuildAlert's that require the output
of sound.
|
description, location, project| Constructor | Description |
|---|---|
SoundTask() |
Constructor for SoundTask.
|
| Modifier and Type | Method | Description |
|---|---|---|
SoundTask.BuildAlert |
createFail() |
add a sound when the build fails
|
SoundTask.BuildAlert |
createSuccess() |
add a sound when the build succeeds
|
void |
execute() |
Execute the task.
|
void |
init() |
Initialize the task.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic SoundTask.BuildAlert createSuccess()
public SoundTask.BuildAlert createFail()