summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-02-10 23:30:59 +0100
committerJulien Lepiller <julien@lepiller.eu>2018-02-25 12:04:18 +0100
commit36607d3bfe1f0d26773ffaefd22b4968c6237999 (patch)
tree863d36c3cc72f872575569a39f98c3a54ed437fe
parente470856017a705d4ba1881363717579e62f28671 (diff)
downloadpatches-36607d3bfe1f0d26773ffaefd22b4968c6237999.tar
patches-36607d3bfe1f0d26773ffaefd22b4968c6237999.tar.gz
gnu: Add java-modello-plugins-xpp3.
gnu/packages/java.scm (java-modello-plugins-xpp3): New variable.
-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 f8bb5e58f7..93b343f62f 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2952,6 +2952,38 @@ working on XML representation of the model.")))
Modello generator unit-tests, including sample models and xml files to test
every feature for every plugin.")))
+(define-public java-modello-plugins-xpp3
+ (package
+ (inherit java-modello-core)
+ (name "java-modello-plugins-xpp3")
+ (arguments
+ `(#:jar-name "modello-plugins-xpp3.jar"
+ #:source-dir "modello-plugins/modello-plugin-xpp3/src/main/java"
+ #:test-dir "modello-plugins/modello-plugin-xpp3/src/test"
+ ;; One of the test dependencies is maven-model which depends on this package.
+ #:tests? #f
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'copy-resources
+ (lambda _
+ (mkdir-p "build/classes")
+ (copy-recursively "modello-plugins/modello-plugin-xpp3/src/main/resources"
+ "build/classes")
+ #t)))))
+ (inputs
+ `(("java-modello-core" ,java-modello-core)
+ ("java-modello-plugins-java" ,java-modello-plugins-java)
+ ("java-modello-plugins-xml" ,java-modello-plugins-xml)
+ ,@(package-inputs java-modello-core)))
+ (native-inputs
+ `(("java-xmlunit" ,java-xmlunit)
+ ("java-modello-test" ,java-modello-test)
+ ,@(package-native-inputs java-modello-core)))
+ (synopsis "Modello XPP3 Plugin")
+ (description "The modello XPP3 plugin generates XML readers and writers based
+on the XPP3 API (XML Pull Parser).")))
+
(define-public java-asm
(package
(name "java-asm")