From 59e0021cc79b577daaf0f23a9f0b93e166400261 Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@lepiller.eu>
Date: Wed, 13 Dec 2017 21:18:50 +0100
Subject: [PATCH] gnu: java-powermock-core: Include resources.

* gnu/packages/java.scm (java-powermock-core)[arguments]: Add a phase to
include resources.
---
 gnu/packages/java.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8dd6356058f..c05e4c3fabe 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -7418,7 +7418,13 @@ (define-public java-powermock-core
        #:source-dir "powermock-core/src/main/java"
        #:test-dir "powermock-core/src/test"
        #:tests? #f; requires powermock-api
-       #:jdk ,icedtea-8))
+       #:jdk ,icedtea-8
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'copy-resources
+           (lambda _
+             (copy-recursively "powermock-core/src/main/resources"
+                               "build/classes"))))))
     (inputs
      `(("reflect" ,java-powermock-reflect)
        ("javassist" ,java-jboss-javassist)))
-- 
GitLab