org.apache.tools.ant.taskdefs.optional.sound
public class AntSoundPlayer extends Object implements LineListener, BuildListener
Constructor Summary | |
---|---|
AntSoundPlayer() Constructor for AntSoundPlayer. |
Method Summary | |
---|---|
void | addBuildFailedSound(File fileFail, int loopsFail, Long durationFail) |
void | addBuildSuccessfulSound(File file, int loops, Long duration) |
void | buildFinished(BuildEvent event)
Fired after the last target has finished. |
void | buildStarted(BuildEvent event)
Fired before any targets are started. |
void | messageLogged(BuildEvent event)
Fired whenever a message is logged. |
void | targetFinished(BuildEvent event)
Fired when a target has finished. |
void | targetStarted(BuildEvent event)
Fired when a target is started. |
void | taskFinished(BuildEvent event)
Fired when a task has finished. |
void | taskStarted(BuildEvent event)
Fired when a task is started. |
void | update(LineEvent event)
This is implemented to listen for any line events and closes the
clip if required. |
Parameters: fileFail the location of the audio file to be played when the build fails loopsFail the number of times the file should be played when the build is fails durationFail the number of milliseconds the file should be played when the build fails
Parameters: file the location of the audio file to be played when the build is successful loops the number of times the file should be played when the build is successful duration the number of milliseconds the file should be played when the build is successful
Parameters: event the build finished event.
See Also: getException
Parameters: event ignored
Parameters: event the build event
See Also: getMessage getPriority
Parameters: event ignored.
See Also: getException
Parameters: event ignored.
See Also: getTarget
Parameters: event ignored.
See Also: getException
Parameters: event ignored.
See Also: getTask
Parameters: event the line event to follow