mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: Add java-xmlunit-matchers.
* gnu/packages/java.scm (java-xmlunit-matchers): New variable.
This commit is contained in:
parent
a52461ded1
commit
f5cc5ead58
1 changed files with 31 additions and 0 deletions
|
@ -9670,6 +9670,37 @@ (define-public java-xmlunit-legacy
|
|||
(native-inputs
|
||||
`(("java-mockito-1" ,java-mockito-1)))))
|
||||
|
||||
(define-public java-xmlunit-matchers
|
||||
(package
|
||||
(inherit java-xmlunit)
|
||||
(name "java-xmlunit-matchers")
|
||||
(arguments
|
||||
`(#:jar-name "java-xmlunit-matchers.jar"
|
||||
#:source-dir "xmlunit-matchers/src/main/java"
|
||||
#:test-dir "xmlunit-matchers/src/test"
|
||||
#:test-exclude
|
||||
;; Cannot open xsd for http://www.xmlunit.org/test-support/Book.xsd
|
||||
(list "**/ValidationMatcherTest.java")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'build 'copy-test-class
|
||||
(lambda _
|
||||
(copy-file "xmlunit-core/src/test/java/org/xmlunit/TestResources.java"
|
||||
"xmlunit-matchers/src/test/java/org/xmlunit/TestResources.java")
|
||||
#t))
|
||||
(add-before 'build 'fix-test-resources-path
|
||||
(lambda _
|
||||
(substitute* (find-files "xmlunit-matchers/src/test" ".*.java")
|
||||
(("../test-resources") "test-resources"))
|
||||
#t))
|
||||
(add-before 'check 'copy-test-resources
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(copy-recursively (assoc-ref inputs "resources") "test-resources")
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("java-xmlunit" ,java-xmlunit)
|
||||
("java-junit" ,java-junit)))))
|
||||
|
||||
(define-public java-openchart2
|
||||
(package
|
||||
(name "java-openchart2")
|
||||
|
|
Loading…
Reference in a new issue