Package org.apache.tools.ant.listener
Class Log4jListener
- java.lang.Object
-
- org.apache.tools.ant.listener.Log4jListener
-
- All Implemented Interfaces:
java.util.EventListener,BuildListener
@Deprecated public class Log4jListener extends java.lang.Object implements BuildListener
Deprecated.Apache Log4j (1) is not developed any more. Last release is 1.2.17 from 26-May-2012 and contains vulnerability issues. Use the standard listener or your own custom listener instead.Listener which sends events to Log4j logging system.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOG_ANTDeprecated.use MagicNames.ANT_CORE_PACKAGE
-
Constructor Summary
Constructors Constructor Description Log4jListener()Deprecated.Construct the listener
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbuildFinished(BuildEvent event)Deprecated.Signals that the last target has finished.voidbuildStarted(BuildEvent event)Deprecated.Signals that a build has started.voidmessageLogged(BuildEvent event)Deprecated.Signals a message logging event.voidtargetFinished(BuildEvent event)Deprecated.Signals that a target has finished.voidtargetStarted(BuildEvent event)Deprecated.Signals that a target is starting.voidtaskFinished(BuildEvent event)Deprecated.Signals that a task has finished.voidtaskStarted(BuildEvent event)Deprecated.Signals that a task is starting.
-
-
-
Field Detail
-
LOG_ANT
@Deprecated public static final java.lang.String LOG_ANT
Deprecated.use MagicNames.ANT_CORE_PACKAGElog category we log into- See Also:
- Constant Field Values
-
-
Method Detail
-
buildStarted
public void buildStarted(BuildEvent event)
Deprecated.Description copied from interface:BuildListenerSignals that a build has started. This event is fired before any targets have started.This event is fired before the project instance is fully configured. In particular no properties have been set and the project may not know its name or default target, yet.
- Specified by:
buildStartedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
buildFinished
public void buildFinished(BuildEvent event)
Deprecated.Description copied from interface:BuildListenerSignals that the last target has finished. This event will still be fired if an error occurred during the build.- Specified by:
buildFinishedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
targetStarted
public void targetStarted(BuildEvent event)
Deprecated.Description copied from interface:BuildListenerSignals that a target is starting.- Specified by:
targetStartedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
targetFinished
public void targetFinished(BuildEvent event)
Deprecated.Description copied from interface:BuildListenerSignals that a target has finished. This event will still be fired if an error occurred during the build.- Specified by:
targetFinishedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
taskStarted
public void taskStarted(BuildEvent event)
Deprecated.Description copied from interface:BuildListenerSignals that a task is starting.- Specified by:
taskStartedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
taskFinished
public void taskFinished(BuildEvent event)
Deprecated.Description copied from interface:BuildListenerSignals that a task has finished. This event will still be fired if an error occurred during the build.- Specified by:
taskFinishedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
messageLogged
public void messageLogged(BuildEvent event)
Deprecated.Description copied from interface:BuildListenerSignals a message logging event.- Specified by:
messageLoggedin interfaceBuildListener- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
.
-
-