gnu: Add java-surefire-booter.

* gnu/packages/maven.scm (java-surefire-booter): New variable.
This commit is contained in:
Julien Lepiller 2020-06-27 23:26:31 +02:00
parent ac8179a05c
commit bf2769c23f
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -3251,3 +3251,31 @@ (define-public java-surefire-api
("java-jarjar" ,java-jarjar))) ("java-jarjar" ,java-jarjar)))
(synopsis "Maven SureFire API") (synopsis "Maven SureFire API")
(description "This package contains the API to use Maven SureFire."))) (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.")))