Subject: [bug#29221] [PATCH 12/19] gnu: Add java-log4j-1.2-api.

From: [email-masked]
Date: Wed, 8 Nov 2017 23:51:33 +0100

From: Julien Lepiller <[email-masked]>

* gnu/packages/java.scm (java-log4j-1.2-api): New variable.
---
 gnu/packages/java.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 25e38ba80..2aa9311cf 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -4284,6 +4284,24 @@ Java.")
     (description "This package provides the core component of the Log4j
 logging framework for Java.")))
 
+(define-public java-log4j-1.2-api
+  (package
+    (inherit java-log4j-api)
+    (name "java-log4j-1.2-api")
+    (arguments
+     `(#:jar-name "java-log4j-1.2-api.jar"
+       #:source-dir "log4j-1.2-api/src/main/java"
+       #:jdk ,icedtea-8
+       ;; Tests require maven-model (and other maven subprojects), which is a
+       ;; cyclic dependency.
+       #:tests? #f))
+    (inputs
+     `(("log4j-api" ,java-log4j-api)
+       ("log4j-core" ,java-log4j-core)
+       ("osgi-core" ,java-osgi-core)
+       ("eclipse-osgi" ,java-eclipse-osgi)
+       ("java-lmax-disruptor" ,java-lmax-disruptor)))))
+
 (define-public java-commons-cli
   (package
     (name "java-commons-cli")
-- 
2.15.0