aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/java.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-02-10 22:53:12 +0100
committerJulien Lepiller <julien@lepiller.eu>2018-02-25 12:04:10 +0100
commita0ce95ba8f6beb79fe77fe4f199dbe49e243bbbc (patch)
tree2bafba6866cca51f03ee89d688f8e3d872eedad6 /gnu/packages/java.scm
parentfc620befd4d4236db8f446dba2e0f3abcd4c0cfb (diff)
downloadpatches-a0ce95ba8f6beb79fe77fe4f199dbe49e243bbbc.tar
patches-a0ce95ba8f6beb79fe77fe4f199dbe49e243bbbc.tar.gz
gnu: Add java-modello-plugins-xml.
* gnu/packages/java.scm (java-modello-plugins-xml): New variable.
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r--gnu/packages/java.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 05cf91999b..6d77967de6 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2901,6 +2901,38 @@ XSD and documentation.")
(synopsis "Modello Java Plugin")
(description "Modello Java Plugin generates Java objects for the model.")))
+(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 _
+ (with-directory-excursion "modello-plugins/modello-plugin-xml/src/test"
+ (substitute*
+ "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)))
+ (synopsis "Modello XML Plugin")
+ (description "Modello XML Plugin contains shared code for every plugins
+working on XML representation of the model.")))
+
(define-public java-asm
(package
(name "java-asm")