RbUtils 0.13

org.ktc.rbutils.rb
Class AbstractRbTask.Log

java.lang.Object
  extended by org.ktc.rbutils.rb.AbstractRbTask.Log
Enclosing class:
AbstractRbTask

public static class AbstractRbTask.Log
extends Object

Logger for the rbUtils ant tasks.

The logger is created by the createLogger(Task) method. The RbCheckerTask and RbGeneratorTask are currently supported.

Since:
RbUtils 0.9.1
Version:
$Revision: 1.5 $
Author:
redfish

Constructor Summary
AbstractRbTask.Log()
          Instanciates a new Logger.
 
Method Summary
 Logger createLogger(Task task)
          Creates a logger according to a task.
 AbstractRbTask.LoggerType getLoggerType()
          Returns the type of this ant logger.
 File getOutputFile()
          Returns the output file of this ant logger.
 void setOutputFile(File theOutputFile)
          Set the file to output to.
 void setType(AbstractRbTask.LoggerType loggertype)
          Set the type of the logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRbTask.Log

public AbstractRbTask.Log()
Instanciates a new Logger.

Method Detail

setType

public void setType(AbstractRbTask.LoggerType loggertype)
Set the type of the logger.

Parameters:
loggertype - the type of the logger.

setOutputFile

public void setOutputFile(File theOutputFile)
Set the file to output to.

Parameters:
theOutputFile - the file to output to.

createLogger

public Logger createLogger(Task task)
                    throws IOException
Creates a logger according to a task. TODO Javadoc - to be improved.

Parameters:
task - the task to be associated to the logger.
Returns:
a logger according to the task.
Throws:
IOException - if an error occurs.

getLoggerType

public AbstractRbTask.LoggerType getLoggerType()
Returns the type of this ant logger.

Returns:
the type of the ant logger.

getOutputFile

public File getOutputFile()
Returns the output file of this ant logger.

Returns:
the output file of this ant logger.

Back to the RbUtils Home Page

Copyright © 2005-2009 RbUtils Project. All Rights Reserved.