me
/
guix
Archived
1
0
Fork 0

gnu: java-powermock-modules-junit4: Fix junit version detection.

* gnu/packages/java.scm (java-powermock-modules-junit4)[arguments]: Fix
junit version detection.
master
Julien Lepiller 2017-12-13 21:20:30 +01:00
parent 59e0021cc7
commit 1124683d8c
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 9 additions and 1 deletions

View File

@ -7473,7 +7473,15 @@ done to the IDE or continuous integration servers which simplifies adoption.")
`(#:jar-name "java-powermock-modules-junit4.jar" `(#:jar-name "java-powermock-modules-junit4.jar"
#:jdk ,icedtea-8 #:jdk ,icedtea-8
#:source-dir "powermock-modules/powermock-module-junit4/src/main/java" #:source-dir "powermock-modules/powermock-module-junit4/src/main/java"
#:test-dir "powermock-modules/powermock-module-junit4/src/test")) #:test-dir "powermock-modules/powermock-module-junit4/src/test"
#:phases
(modify-phases %standard-phases
(add-before 'build 'fix-junit-detection
(lambda _
;; Our junit version is 4.12-SNAPSHOT
(substitute* (find-files "powermock-modules/powermock-module-junit4"
"PowerMockJUnit4MethodValidator.java")
(("4.12") "4.12-SNAPSHOT")))))))
(inputs (inputs
`(("core" ,java-powermock-core) `(("core" ,java-powermock-core)
("reflect" ,java-powermock-reflect) ("reflect" ,java-powermock-reflect)