diff options
author | Julien Lepiller <julien@lepiller.eu> | 2017-10-26 00:06:55 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2017-11-02 13:07:30 +0100 |
commit | 4d50897515343430ecd779f3eb1ddeea09d1492e (patch) | |
tree | a14851ce27c9382062813436c292d9b096a5c134 | |
parent | 33db1681816e8e1ce2df685e2c29e255d33fdf58 (diff) | |
download | guix-4d50897515343430ecd779f3eb1ddeea09d1492e.tar.gz |
gnu: Add java-powermock-api-easymock.
* gnu/packages/java.scm (java-powermock-api-easymock): New variable.
-rw-r--r-- | gnu/packages/java.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 329d2ad815..fe4dc289a2 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -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))))) |