deprecate Log4jListener

Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/7a6d765e
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/7a6d765e
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/7a6d765e

Branch: refs/heads/1.9.x
Commit: 7a6d765e011398468e4b755b4b5acba0fc6ef41f
Parents: 8b737f0
Author: Jan Matèrne <j...@apache.org>
Authored: Mon Jan 22 11:13:32 2018 +0100
Committer: Jan Matèrne <j...@apache.org>
Committed: Mon Jan 22 12:50:23 2018 +0100

----------------------------------------------------------------------
 manual/listeners.html                                     | 9 +++++++--
 src/main/org/apache/tools/ant/listener/Log4jListener.java | 7 +++++--
 2 files changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/7a6d765e/manual/listeners.html
----------------------------------------------------------------------
diff --git a/manual/listeners.html b/manual/listeners.html
index 2015cd5..673106f 100644
--- a/manual/listeners.html
+++ b/manual/listeners.html
@@ -97,7 +97,11 @@ listeners and loggers.</p>
   <tr>
     <td width="33%"><code><a href="#Log4jListener">
     org.apache.tools.ant.listener.Log4jListener</a></code></td>
-    <td width="33%">Passes events to Log4j for highly customizable 
logging.</td>
+    <td width="33%">
+        Passes events to Apache Log4j for highly customizable logging.<br>
+        <b>Deprecated:</b> Apache Log4j (1) is not developed any more. Last
+        release is 1.2.17 from 26-May-2012 and contains vulnerability issues.
+    </td>
     <td width="34%">BuildListener</td>
   </tr>
   <tr>
@@ -364,6 +368,8 @@ Background is one of the following:
 
 
 <h3><a name="Log4jListener">Log4jListener</a></h3>
+<p><b>Deprecated:</b> Apache Log4j (1) is not developed any more. Last
+release is 1.2.17 from 26-May-2012 and contains vulnerability issues.</p>
 <p>Passes build events to Log4j, using the full classname's of the generator of
 each build event as the category:</p>
 <ul>
@@ -436,7 +442,6 @@ is declared at all.</p>
 
 
 
-
 <h3><a name="TimestampedLogger">TimestampedLogger</a></h3>
 <p>
   Acts like the default logger, except that the final success/failure message 
also includes

http://git-wip-us.apache.org/repos/asf/ant/blob/7a6d765e/src/main/org/apache/tools/ant/listener/Log4jListener.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/listener/Log4jListener.java 
b/src/main/org/apache/tools/ant/listener/Log4jListener.java
index 501b511..3a3cce5 100644
--- a/src/main/org/apache/tools/ant/listener/Log4jListener.java
+++ b/src/main/org/apache/tools/ant/listener/Log4jListener.java
@@ -28,9 +28,12 @@ import org.apache.tools.ant.Task;
 
 
 /**
- *  Listener which sends events to Log4j logging system
- *
+ * Listener which sends events to Log4j logging system.
+ * @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.
  */
+@Deprecated
 public class Log4jListener implements BuildListener {
 
     /** Indicates if the listener was initialized. */

Reply via email to