diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-12-13 21:20:30 +0100 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2018-01-13 12:06:51 +0100 |
commit | 1124683d8cfddf7869c52ff2a4e4fb402a36ac88 (patch) | |
tree | 89f23cb6f39af2ca4d3aa0e32b9e6fefee836365 /gnu/packages/java.scm | |
parent | 59e0021cc79b577daaf0f23a9f0b93e166400261 (diff) | |
download | guix-1124683d8cfddf7869c52ff2a4e4fb402a36ac88.tar.gz |
gnu: java-powermock-modules-junit4: Fix junit version detection.
* gnu/packages/java.scm (java-powermock-modules-junit4)[arguments]: Fix junit version detection.
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r-- | gnu/packages/java.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index c05e4c3fab..598249aa8c 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -7473,7 +7473,15 @@ done to the IDE or continuous integration servers which simplifies adoption.") `(#:jar-name "java-powermock-modules-junit4.jar" #:jdk ,icedtea-8 #: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 `(("core" ,java-powermock-core) ("reflect" ,java-powermock-reflect) |