com.speech4j.ant
Class VoiceBuildListener

java.lang.Object
  |
  +--com.speech4j.ant.VoiceBuildListener
All Implemented Interfaces:
org.apache.tools.ant.BuildListener, java.util.EventListener

public class VoiceBuildListener
extends java.lang.Object
implements org.apache.tools.ant.BuildListener

VoiceBuildListener. Works only on Windows operating systems. Deactivates on first exception. Controlled by the following properties. All properties are prefixed with the class name so modeId is actually com.speech4j.ant.VoiceBuildListener.modeId ;
Property Default value Parameters Description
modeId Default mode   Mode GUID
modeName Default mode   Mode name
messageLevelINFO   Possible values: ERR, WARN, INFO, VERBOSE, DEBUG.
events buildStarted, buildFinished, targetStarted, targetFinished   Comma separated list of events to vocalize. Possible values:
  • buildStarted
  • buildFinished
  • targetStarted
  • targetFinished
  • taskStarted
  • taskFinished
  • messageLogged
buildSuccessfulMessage Build successful {0} - Project name
{1} - Project description
Build successful message
buildFailedMessage Build failed {0} - Project name
{1} - Project description
{2} - Exception class
{3} - Exception message
Build failed message
buildStartedMessage Build started {0} - Project name
{1} - Project description
Build started message
unknownTargetFinishedMessage Unknown target finished   This message is spoken if buildEvent.getTarget()==null in targetFinished().
Should never happen.
targetFinishedMessage Target {0} finished {0} - Target name
{1} - Target description
Target finished message
unknownTargetStartedMessage Unknown target started   This message is spoken if buildEvent.getTarget()==null in targetStarted().
Should never happen.
targetFinishedMessage Target {0} finished {0} - Target name
{1} - Target description
Target started message
unknownTaskFinishedMessage Unknown task finished   This message is spoken if buildEvent.getTask()==null in taskFinished().
Should never happen.
taskFinishedMessage Task {0} finished {0} - Task name
{1} - Task description
Task finished message
unknownTaskStartedMessage Unknown task started   This message is spoken if buildEvent.getTask()==null in taskStarted().
Should never happen.
taskStartedMessage Task {0} started {0} - Task name
{1} - Task description
Task started message

Version:
1.1
Author:
Pavel

Constructor Summary
VoiceBuildListener()
          Creates a new instance of VoiceBuildListener
 
Method Summary
 void buildFinished(org.apache.tools.ant.BuildEvent buildEvent)
           
 void buildStarted(org.apache.tools.ant.BuildEvent buildEvent)
           
 void messageLogged(org.apache.tools.ant.BuildEvent buildEvent)
           
 void targetFinished(org.apache.tools.ant.BuildEvent buildEvent)
           
 void targetStarted(org.apache.tools.ant.BuildEvent buildEvent)
           
 void taskFinished(org.apache.tools.ant.BuildEvent buildEvent)
           
 void taskStarted(org.apache.tools.ant.BuildEvent buildEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoiceBuildListener

public VoiceBuildListener()
Creates a new instance of VoiceBuildListener

Method Detail

buildFinished

public void buildFinished(org.apache.tools.ant.BuildEvent buildEvent)
Specified by:
buildFinished in interface org.apache.tools.ant.BuildListener

buildStarted

public void buildStarted(org.apache.tools.ant.BuildEvent buildEvent)
Specified by:
buildStarted in interface org.apache.tools.ant.BuildListener

messageLogged

public void messageLogged(org.apache.tools.ant.BuildEvent buildEvent)
Specified by:
messageLogged in interface org.apache.tools.ant.BuildListener

targetFinished

public void targetFinished(org.apache.tools.ant.BuildEvent buildEvent)
Specified by:
targetFinished in interface org.apache.tools.ant.BuildListener

targetStarted

public void targetStarted(org.apache.tools.ant.BuildEvent buildEvent)
Specified by:
targetStarted in interface org.apache.tools.ant.BuildListener

taskFinished

public void taskFinished(org.apache.tools.ant.BuildEvent buildEvent)
Specified by:
taskFinished in interface org.apache.tools.ant.BuildListener

taskStarted

public void taskStarted(org.apache.tools.ant.BuildEvent buildEvent)
Specified by:
taskStarted in interface org.apache.tools.ant.BuildListener


Copyright © 2003 Pavel Vlasov. All Rights Reserved.