aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 23:26:31 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:20:55 +0200
commitbf2769c23f25b7e708e2ac17f1e90c4506a2a5e7 (patch)
tree79db89df6cf3d21a512baa40b5606b232f65357c /gnu/packages
parentac8179a05ca76bbbf620d201f4e7428a92746f96 (diff)
downloadguix-bf2769c23f25b7e708e2ac17f1e90c4506a2a5e7.tar
guix-bf2769c23f25b7e708e2ac17f1e90c4506a2a5e7.tar.gz
gnu: Add java-surefire-booter.
* gnu/packages/maven.scm (java-surefire-booter): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/maven.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index f2668cd1a2..4aa7f25d05 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -3251,3 +3251,31 @@ internal to the SureFire Logger API. It is designed to have no dependency.")
("java-jarjar" ,java-jarjar)))
(synopsis "Maven SureFire API")
(description "This package contains the API to use Maven SureFire.")))
+
+(define-public java-surefire-booter
+ (package
+ (inherit java-surefire-logger-api)
+ (name "java-surefire-booter")
+ (arguments
+ `(#:tests? #f; require mockito 2
+ #:jar-name "java-surefire-booter.jar"
+ #:source-dir "surefire-booter/src/main/java"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'fix-/bin/sh
+ (lambda _
+ (substitute* "surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java"
+ (("/bin/sh") (which "sh")))
+ #t))
+ (replace 'install
+ (install-from-pom "surefire-booter/pom.xml")))))
+ (propagated-inputs
+ `(("java-surefire-api" ,java-surefire-api)
+ ("java-commons-lang3" ,java-commons-lang3)
+ ("java-commons-io" ,java-commons-io)
+ ("java-surefire-parent-pom" ,java-surefire-parent-pom)))
+ (inputs
+ `(("java-jsr305" ,java-jsr305)))
+ (synopsis "API and Facilities used by forked tests running in JVM sub-process")
+ (description "SureFire runs tests inside a forked JVM subprocess. This
+package contains an API and facilities used inside that forked JVM.")))