aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2017-10-24 22:10:38 +0200
committerJulien Lepiller <julien@lepiller.eu>2017-11-02 13:06:46 +0100
commite84b899d50d9426381e3950e58133f50f971aac0 (patch)
tree7c4e506dbade6557962184cb5608e188a7fef9ce /gnu/packages
parent25436c6d03b46b681ecf464d2f8ac087dbf07dcf (diff)
downloadgnu-guix-e84b899d50d9426381e3950e58133f50f971aac0.tar
gnu-guix-e84b899d50d9426381e3950e58133f50f971aac0.tar.gz
gnu: Add java-jmock-legacy.
* gnu/packages/java.scm (java-jmock-legacy): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/java.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index b36ee250fa..2b07def49c 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2579,6 +2579,34 @@ The jMock library
("java-jmock" ,java-jmock)
("java-jumit" ,java-junit)))))
+(define-public java-jmock-legacy
+ (package
+ (inherit java-jmock)
+ (name "java-jmock-legacy")
+ (arguments
+ `(#:jar-name "java-jmock-legacy.jar"
+ #:source-dir "jmock-legacy/src/main/java"
+ #:test-dir "jmock-legacy/src/test"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'copy-tests
+ (lambda _
+ ;; This file is a dependancy of some tests
+ (let ((file "org/jmock/test/acceptance/PackageProtectedType.java"))
+ (copy-file (string-append "jmock/src/test/java/" file)
+ (string-append "jmock-legacy/src/test/java/" file))
+ #t))))))
+ (inputs
+ `(("java-hamcrest-all" ,java-hamcrest-all)
+ ("java-objenesis" ,java-objenesis)
+ ("java-cglib" ,java-cglib)
+ ("java-jmock" ,java-jmock)
+ ("java-asm" ,java-asm)
+ ("java-bsh" ,java-bsh)
+ ("java-junit" ,java-junit)))
+ (native-inputs
+ `(("java-jmock-junit4" ,java-jmock-junit4)))))
+
(define-public java-hamcrest-all
(package (inherit java-hamcrest-core)
(name "java-hamcrest-all")