org.codehaus.cargo.container.internal.util
Class AntBuildListener

java.lang.Object
  extended by org.codehaus.cargo.container.internal.util.AntBuildListener
All Implemented Interfaces:
java.util.EventListener, org.apache.tools.ant.BuildListener

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

Ant build listener used to collect logs from Ant tasks and to redirect them to a Logger.

Version:
$Id: AntBuildListener.java 1705 2008-09-02 13:14:55Z adriana $

Constructor Summary
AntBuildListener(Logger logger, java.lang.String category)
           
 
Method Summary
 void buildFinished(org.apache.tools.ant.BuildEvent event)
          
 void buildStarted(org.apache.tools.ant.BuildEvent event)
          
 void messageLogged(org.apache.tools.ant.BuildEvent event)
          
 void targetFinished(org.apache.tools.ant.BuildEvent event)
          
 void targetStarted(org.apache.tools.ant.BuildEvent event)
          
 void taskFinished(org.apache.tools.ant.BuildEvent event)
          
 void taskStarted(org.apache.tools.ant.BuildEvent event)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntBuildListener

public AntBuildListener(Logger logger,
                        java.lang.String category)
Parameters:
logger - the logger to which to log the Ant messages received
category - the category to log to. Usually this is name of the class being logged
Method Detail

buildStarted

public void buildStarted(org.apache.tools.ant.BuildEvent event)

Specified by:
buildStarted in interface org.apache.tools.ant.BuildListener
See Also:
BuildListener.buildStarted(org.apache.tools.ant.BuildEvent)

buildFinished

public void buildFinished(org.apache.tools.ant.BuildEvent event)

Specified by:
buildFinished in interface org.apache.tools.ant.BuildListener
See Also:
BuildListener.buildFinished(org.apache.tools.ant.BuildEvent)

targetStarted

public void targetStarted(org.apache.tools.ant.BuildEvent event)

Specified by:
targetStarted in interface org.apache.tools.ant.BuildListener
See Also:
BuildListener.targetStarted(org.apache.tools.ant.BuildEvent)

targetFinished

public void targetFinished(org.apache.tools.ant.BuildEvent event)

Specified by:
targetFinished in interface org.apache.tools.ant.BuildListener
See Also:
BuildListener.targetFinished(org.apache.tools.ant.BuildEvent)

taskStarted

public void taskStarted(org.apache.tools.ant.BuildEvent event)

Specified by:
taskStarted in interface org.apache.tools.ant.BuildListener
See Also:
BuildListener.taskStarted(org.apache.tools.ant.BuildEvent)

taskFinished

public void taskFinished(org.apache.tools.ant.BuildEvent event)

Specified by:
taskFinished in interface org.apache.tools.ant.BuildListener
See Also:
BuildListener.taskFinished(org.apache.tools.ant.BuildEvent)

messageLogged

public void messageLogged(org.apache.tools.ant.BuildEvent event)

Specified by:
messageLogged in interface org.apache.tools.ant.BuildListener
See Also:
BuildListener.messageLogged(org.apache.tools.ant.BuildEvent)


Copyright © 2004-2011 Codehaus. All Rights Reserved.