gnu: Add java-powermock-api-easymock.

* gnu/packages/java.scm (java-powermock-api-easymock): New variable.
This commit is contained in:
Julien Lepiller 2017-10-26 00:06:55 +02:00
parent 33db168181
commit 4d50897515
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 27 additions and 0 deletions

View File

@ -6896,3 +6896,30 @@ done to the IDE or continuous integration servers which simplifies adoption.")
("objenesis" ,java-objenesis)
("asm" ,java-asm)
("junit" ,java-junit)))))
(define-public java-powermock-api-easymock
(package
(inherit java-powermock-reflect)
(name "java-powermock-api-easymock")
(build-system ant-build-system)
(arguments
`(#:jar-name "java-powermock-api-easymock.jar"
#:jdk ,icedtea-8
#:source-dir "powermock-api/powermock-api-easymock/src/main/java"
#:tests? #f; no tests
#:phases
(modify-phases %standard-phases
(add-before 'build 'fix-file
(lambda _
;; FIXME: This looks wrong, but it fixes a build error.
(with-directory-excursion "powermock-api/powermock-api-easymock"
(substitute* "src/main/java/org/powermock/api/easymock/PowerMock.java"
(("classLoader instanceof MockClassLoader") "false")
(("\\(\\(MockClassLoader\\) classLoader\\).*;") ";")))
#t)))))
(inputs
`(("core" ,java-powermock-core)
("easymock" ,java-easymock)
("reflect" ,java-powermock-reflect)
("support" ,java-powermock-api-support)
("cglib" ,java-cglib)))))