org.apache.tools.ant.taskdefs.optional.sound
public class AntSoundPlayer extends Object implements LineListener, BuildListener
Constructor Summary | |
---|---|
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
See Also: getException
See Also: getMessage getPriority
See Also: getException
See Also: getTarget
See Also: getException
See Also: getTask