cpptools
Class AntLogger

java.lang.Object
  extended by cpptools.AbstractLogger
      extended by cpptools.AntLogger
All Implemented Interfaces:
EventHandler

public final class AntLogger
extends AbstractLogger

Implements an event handler for logging to Ant.

Author:
Mathieu Champlon

Constructor Summary
AntLogger(org.apache.tools.ant.ProjectComponent project)
          Create an event output.
 
Method Summary
 void changed(java.lang.String filename)
          Specify the file being processed.
 void error(java.lang.String filename, java.lang.Throwable throwable, java.lang.String reason)
          Notify an error.
protected  void log(java.lang.String message)
          Log a given message.
 
Methods inherited from class cpptools.AbstractLogger
display, finished, started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntLogger

public AntLogger(org.apache.tools.ant.ProjectComponent project)
Create an event output.

Parameters:
project - the project instance
Method Detail

error

public void error(java.lang.String filename,
                  java.lang.Throwable throwable,
                  java.lang.String reason)
Notify an error.

Parameters:
filename - the location of the error
throwable - the error
reason - the description of the error

changed

public void changed(java.lang.String filename)
Specify the file being processed.

Parameters:
filename - the name of the fle

log

protected void log(java.lang.String message)
Log a given message.

Specified by:
log in class AbstractLogger
Parameters:
message - the message


Copyright © 2006-2007 null. All Rights Reserved.