me
/
guix
Archived
1
0
Fork 0

gnu: java-hamcrest-library: Fix race condition.

* gnu/packages/java.scm (java-hamcrest-library)[arguments]: Fix
build.xml in the same way it is fixed in java-hamcrest-all to prevent a
race condition.
master
Julien Lepiller 2020-07-18 13:24:12 +02:00
parent b998b19e51
commit 7bbe61f8ff
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82
1 changed files with 7 additions and 0 deletions

View File

@ -3796,6 +3796,13 @@ testing frameworks, mocking libraries and UI validation rules.")
((#:build-target _) "library") ((#:build-target _) "library")
((#:phases phases) ((#:phases phases)
`(modify-phases ,phases `(modify-phases ,phases
(add-after 'unpack 'patch-classpath-for-integration
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "build.xml"
(("build/hamcrest-core-\\$\\{version\\}\\.jar")
(car (find-files (assoc-ref inputs "java-hamcrest-core")
"jar$"))))
#t))
(replace 'create-pom (replace 'create-pom
(lambda _ (lambda _
(substitute* "pom/hamcrest-library.pom" (substitute* "pom/hamcrest-library.pom"