org.enableit.db.ant
Class Log4jConfigTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.enableit.db.ant.Log4jConfigTask

public class Log4jConfigTask
extends org.apache.tools.ant.Task

Configure Log4J from a property file.

Version:
__VERSION__
Author:
__AUTHOR__

Field Summary
protected static org.apache.log4j.Logger logger
          The Log4J Logger doing the logging.
protected  java.lang.String propertyFile
          The name of the Log4J Property file.
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Log4jConfigTask()
          Default Constructor
 
Method Summary
 void execute()
          The Ant-defined execute method must be implemented by subclasses.
 void setPropertyFile(java.lang.String propertyFile)
          Sets the name of the Property file to configure with.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
The Log4J Logger doing the logging.


propertyFile

protected java.lang.String propertyFile
The name of the Log4J Property file.

Constructor Detail

Log4jConfigTask

public Log4jConfigTask()
Default Constructor

Method Detail

setPropertyFile

public void setPropertyFile(java.lang.String propertyFile)
Sets the name of the Property file to configure with.


execute

public void execute()
             throws org.apache.tools.ant.BuildException
The Ant-defined execute method must be implemented by subclasses.

Overrides:
execute in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException


Copyright © 1999-2004 enableIT.org. All Rights Reserved.