Subject: [bug#28841] [PATCH 09/24] gnu: Add java-eclipse-jetty-http.

From: [email-masked]
Date: Sun, 15 Oct 2017 00:23:34 +0200

From: Julien Lepiller <[email-masked]>

* gnu/packages/java.scm (java-eclipse-jetty-http): New variable.
---
 gnu/packages/java.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 2e93f90b7..a35dcce96 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6291,3 +6291,30 @@ or embedded instantiation.  This package provides IO-related utility classes."))
        ("objenesis" ,java-objenesis)
        ("asm" ,java-asm)
        ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
+
+(define-public java-eclipse-jetty-http
+  (package
+    (inherit java-eclipse-jetty-util)
+    (name "java-eclipse-jetty-http")
+    (arguments
+     `(#:jar-name "eclipse-jetty-http.jar"
+       #:source-dir "src/main/java"
+       #:jdk ,icedtea-8
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'chdir
+           (lambda _
+             (chdir "jetty-http")))
+         (add-before 'build 'copy-resources
+           (lambda _
+             (mkdir-p "build/classes")
+             (copy-recursively "src/main/resources/" "build/classes/"))))))
+    (inputs
+     `(("slf4j" ,java-slf4j-api)
+       ("servlet" ,java-tomcat)
+       ("io" ,java-eclipse-jetty-io)
+       ("util" ,java-eclipse-jetty-util)))
+    (synopsis "Jetty :: Http Utility")
+    (description "The Jetty Web Server provides an HTTP server and Servlet
+container capable of serving static and dynamic content either from a standalone
+or embedded instantiation.  This package provides HTTP-related utility classes.")))
-- 
2.14.2