|
AntSoundPlayer (Apache Ant API)
org.apache.tools.ant.taskdefs.optional.sound
|
Constructor Summary | |
AntSoundPlayer()
|
Method Summary | |
void |
addBuildFailedSound(java.io.File fileFail,
int loopsFail,
java.lang.Long durationFail)
|
void |
addBuildSuccessfulSound(java.io.File file,
int loops,
java.lang.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(javax.sound.sampled.LineEvent event)
This is implemented to listen for any line events and closes the clip if required. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AntSoundPlayer()
Method Detail |
public void addBuildSuccessfulSound(java.io.File file, int loops, java.lang.Long duration)
loops
- the number of times the file should be played when the build is successfulduration
- the number of milliseconds the file should be played when the build is successfulpublic void addBuildFailedSound(java.io.File fileFail, int loopsFail, java.lang.Long durationFail)
public void update(javax.sound.sampled.LineEvent event)
update
in interface javax.sound.sampled.LineListener
public void buildStarted(BuildEvent event)
buildStarted
in interface BuildListener
event
- An event with any relevant extra information.
Must not be null
.public void buildFinished(BuildEvent event)
buildFinished
in interface BuildListener
event
- An event with any relevant extra information.
Must not be null
.BuildEvent.getException()
public void targetStarted(BuildEvent event)
targetStarted
in interface BuildListener
event
- An event with any relevant extra information.
Must not be null
.BuildEvent.getTarget()
public void targetFinished(BuildEvent event)
targetFinished
in interface BuildListener
event
- An event with any relevant extra information.
Must not be null
.BuildEvent.getException()
public void taskStarted(BuildEvent event)
taskStarted
in interface BuildListener
event
- An event with any relevant extra information.
Must not be null
.BuildEvent.getTask()
public void taskFinished(BuildEvent event)
taskFinished
in interface BuildListener
event
- An event with any relevant extra information.
Must not be null
.BuildEvent.getException()
public void messageLogged(BuildEvent event)
messageLogged
in interface BuildListener
event
- An event with any relevant extra information.
Must not be null
.BuildEvent.getMessage()
,
BuildEvent.getPriority()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |