| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.optional.sound.SoundTask
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 | |
|  class | SoundTask.BuildAlertA class to be extended by any BuildAlert's that require the output of sound. | 
| Field Summary | 
| Fields inherited from class org.apache.tools.ant.Task | 
| description, location, target, taskName, taskType, wrapper | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
| project | 
| Constructor Summary | |
| SoundTask() | |
| Method Summary | |
|  SoundTask.BuildAlert | createFail()add a sound when the build fails | 
|  SoundTask.BuildAlert | createSuccess()add a sound when the build succeeds | 
|  void | execute()Called by the project to let the task do its work. | 
|  void | init()Called by the project to let the task initialize properly. | 
| Methods inherited from class org.apache.tools.ant.Task | 
| getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
| getProject, setProject | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SoundTask()
| Method Detail | 
public SoundTask.BuildAlert createSuccess()
public SoundTask.BuildAlert createFail()
public void init()
Task
init in class Taskpublic void execute()
Task
execute in class Task| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||