Subject: [PATCH 08/11] gnu: Add java-modello-plugins-xml.

From: Julien Lepiller <[email-masked]>
Date: Sun, 11 Feb 2018 00:04:35 +0100

* gnu/packages/java.scm (java-modello-plugins-xml): New variable.
---
 gnu/packages/java.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 76a586a98..1f29e3a29 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2883,6 +2883,32 @@ XSD and documentation.")
      `(("java-modello-core" ,java-modello-core)
        ,@(package-inputs java-modello-core)))))
 
+(define-public java-modello-plugins-xml
+  (package
+    (inherit java-modello-core)
+    (name "java-modello-plugins-xml")
+    (arguments
+     `(#:jar-name "modello-plugins-xml.jar"
+       #:source-dir "modello-plugins/modello-plugin-xml/src/main/java"
+       #:test-dir "modello-plugins/modello-plugin-xml/src/test"
+       #:jdk ,icedtea-8
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'copy-resources
+           (lambda _
+             (mkdir-p "build/classes")
+             (copy-recursively "modello-plugins/modello-plugin-xml/src/main/resources"
+                               "build/classes")
+             #t))
+         (add-before 'check 'fix-paths
+           (lambda _
+             (substitute* "modello-plugins/modello-plugin-xml/src/test/java/org/codehaus/modello/plugins/xml/XmlModelloPluginTest.java"
+               (("src/test") "modello-plugins/modello-plugin-xml/src/test")))))))
+    (inputs
+     `(("java-modello-core" ,java-modello-core)
+       ("java-modello-plugins-java" ,java-modello-plugins-java)
+       ,@(package-inputs java-modello-core)))))
+
 (define-public java-asm
   (package
     (name "java-asm")
-- 
2.16.1