mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add java-jmock-legacy.
* gnu/packages/java.scm (java-jmock-legacy): New variable.
This commit is contained in:
parent
25436c6d03
commit
e84b899d50
1 changed files with 28 additions and 0 deletions
|
@ -2579,6 +2579,34 @@ (define-public java-jmock-junit4
|
|||
("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")
|
||||
|
|
Loading…
Reference in a new issue