java.lang.Cloneable
public 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 backModifier 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, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public SoundTask.BuildAlert createSuccess()
public SoundTask.BuildAlert createFail()