+ `(#:make-flags
+ (list (string-append "-Djunit.core.jar="
+ (car (find-files
+ (assoc-ref %build-inputs "java-junit")
+ ".*.jar$")))
+ (string-append "-Djunit.junitparams.jar="
+ (car (find-files
+ (assoc-ref %build-inputs "java-junitparams")
+ ".*.jar$")))
+ (string-append "-Djunit.hamcrest.jar="
+ (car (find-files
+ (assoc-ref %build-inputs "java-hamcrest-core")
+ ".*.jar$"))))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "..")
+ #t))
+ (add-before 'build 'remove-ivy
+ (lambda _
+ ;; This target wants to download ivy and use it to download
+ ;; junit.
+ (substitute* "build.xml"
+ (("depends=\"test-init-junit-dependency\"") ""))
+ #t))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((share (string-append (assoc-ref outputs "out")
+ "/share/java/")))
+ (mkdir-p share)
+ (install-file "icu4j.jar" share)
+ #t))))))
+ (native-inputs
+ `(("java-junit" ,java-junit)
+ ("java-junitparams" ,java-junitparams)
+ ("java-hamcrest-core" ,java-hamcrest-core)))