[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: java-powermock-modules-junit4: Fix junit version detection.
From: |
julien lepiller |
Subject: |
02/02: gnu: java-powermock-modules-junit4: Fix junit version detection. |
Date: |
Sat, 13 Jan 2018 06:11:15 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 1124683d8cfddf7869c52ff2a4e4fb402a36ac88
Author: Julien Lepiller <address@hidden>
Date: Wed Dec 13 21:20:30 2017 +0100
gnu: java-powermock-modules-junit4: Fix junit version detection.
* gnu/packages/java.scm (java-powermock-modules-junit4)[arguments]: Fix
junit version detection.
---
gnu/packages/java.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index c05e4c3..598249a 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)