[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/24: gnu: Add java-eclipse-jetty-test-helper.
From: |
julien lepiller |
Subject: |
03/24: gnu: Add java-eclipse-jetty-test-helper. |
Date: |
Mon, 23 Oct 2017 16:58:46 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 339bef37cd2fce78333ac1c52060c0b03db62aae
Author: Julien Lepiller <address@hidden>
Date: Sun Oct 15 00:07:09 2017 +0200
gnu: Add java-eclipse-jetty-test-helper.
* gnu/packages/web.scm (java-eclipse-jetty-test-helper): New variable.
---
gnu/packages/web.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index bc0c606..b1d267d 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -5436,3 +5436,54 @@ WebSocket")
Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
technologies.")
(license l:asl2.0)))
+
+(define-public java-eclipse-jetty-test-helper
+ (package
+ (name "java-eclipse-jetty-test-helper")
+ (version "4.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/eclipse/jetty.toolchain/"
+ "archive/jetty-test-helper-" version
".tar.gz"))
+ (sha256
+ (base32
+ "1jd6r9wc26fa11si4rn2gvy8ml8q4zw1nr6v04mjp8wvwpgvzwx5"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "eclipse-jetty-test-helper.jar"
+ #:source-dir "src/main/java"
+ #:test-dir "src/test"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-test-helper")))
+ (add-before 'build 'fix-paths
+ (lambda _
+ ;; TODO:
+ ;; This file assumes that the build directory is named "target"
+ ;; but it is not the case with our ant-build-system. Once we have
+ ;; maven though, we will have to rebuild this package because this
+ ;; assumption is correct with maven-build-system.
+ (substitute*
+
"src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java"
+ (("\"target\"") "\"build\"")
+ (("\"tests\"") "\"test-classes\""))
+ ;; Tests assume we are building with maven, so that the build
+ ;; directory is named "target", and not "build".
+ (with-directory-excursion
"src/test/java/org/eclipse/jetty/toolchain/test"
+ (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java"
+ "MavenTestingUtilsTest.java")
+ (("target/tests") "build/test-classes")
+ (("\"target") "\"build")))
+ #t)))))
+ (inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-all)))
+ (home-page "https://www.eclipse.org/jetty/")
+ (synopsis "Helper classes for jetty tests")
+ (description "This packages contains helper classes for testing the Jetty
+Web Server.")
+ ;; This program is licensed under both epl and asl.
+ (license (list l:epl1.0 l:asl2.0))))
- branch master updated (1a6497d -> 6768e0a), julien lepiller, 2017/10/23
- 01/24: gnu: Add java-hdrhistogram., julien lepiller, 2017/10/23
- 02/24: gnu: Add java-tomcat., julien lepiller, 2017/10/23
- 04/24: gnu: Add java-eclipse-jetty-perf-helper., julien lepiller, 2017/10/23
- 03/24: gnu: Add java-eclipse-jetty-test-helper.,
julien lepiller <=
- 07/24: gnu: Add java-eclipse-jetty-io., julien lepiller, 2017/10/23
- 10/24: gnu: Add java-eclipse-jetty-http-9.2., julien lepiller, 2017/10/23
- 12/24: gnu: Add java-eclipse-jetty-jmx-9.2., julien lepiller, 2017/10/23
- 14/24: gnu: Add java-eclipse-jetty-server-9.2., julien lepiller, 2017/10/23
- 18/24: gnu: Add java-eclipse-jetty-servlet-9.2., julien lepiller, 2017/10/23
- 08/24: gnu: Add java-eclipse-jetty-io-9.2., julien lepiller, 2017/10/23
- 05/24: gnu: Add java-eclipse-jetty-util., julien lepiller, 2017/10/23
- 09/24: gnu: Add java-eclipse-jetty-http., julien lepiller, 2017/10/23
- 06/24: gnu: Add java-eclipse-jetty-util-9.2., julien lepiller, 2017/10/23
- 11/24: gnu: Add java-eclipse-jetty-jmx., julien lepiller, 2017/10/23