java: update descriptions

Julien LepillerTue Oct 10 23:05:35+0200 2017

5a4520d

java: update descriptions

more/packages/java.scm

423423
           (install-jars "build")))))
424424
    (home-page "http://jdom.org/")
425425
    (synopsis "Access, manipulate, and output XML data")
426-
    (description " Java-based solution for accessing, manipulating, and
426+
    (description "Java-based solution for accessing, manipulating, and
427427
outputting XML data from Java code.")
428428
    (license license:bsd-4)))
429429
430+
;; As of 2010-09-01, the ORO project is retired
430431
(define-public java-jakarta-oro
431432
  (package
432433
    (name "java-jakarta-oro")

450451
         (replace 'install
451452
           (install-jars ,(string-append "jakarta-oro-" version))))))
452453
    (home-page "https://jakarta.apache.org/oro/")
453-
    (synopsis "")
454-
    (description "")
454+
    (synopsis "Text-processing for Java")
455+
    (description "The Jakarta-ORO Java classes are a set of text-processing
456+
Java classes that provide Perl5 compatible regular expressions, AWK-like
457+
regular expressions, glob expressions, and utility classes for performing
458+
substitutions, splits, filtering filenames, etc.  This library is the successor
459+
of the OROMatcher, AwkTools, PerlTools, and TextTools libraries originally
460+
from ORO, Inc.")
455461
    (license license:asl2.0)))
456462
457463
(define-public java-jdom

494500
    (arguments
495501
     `(#:jar-name "mvel2.jar"
496502
       #:source-dir "src/main/java"
503+
       #:test-exclude
504+
       (list "**/Abstract*.java"
505+
             ;; Base class with no tests
506+
             "**/MVELThreadTest.java")
497507
       #:phases
498508
       (modify-phases %standard-phases
499-
         (add-before 'check 'exclude-non-tests
500-
           (lambda _
501-
             (substitute* "build.xml"
502-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
503-
                (string-append "<include name=\"**/*Test.java\" />"
504-
                               "<exclude name=\"**/Abstract*Test.java\" />"
505-
                               "<exclude name=\"**/MVELThreadTest.java\" />")))))
506509
         (add-after 'install 'install-bin
507510
           (lambda* (#:key outputs #:allow-other-keys)
508511
             (let ((bin (string-append (assoc-ref outputs "out") "/bin")))

519522
     `(("junit" ,java-junit)
520523
       ("hamcrest" ,java-hamcrest-core)))
521524
    (home-page "https://github.com/mvel/mvel")
522-
    (synopsis "")
523-
    (description "")
525+
    (synopsis "MVFLEX Expression Language")
526+
    (description "MVEL has largely been inspired by Java syntax, but has some
527+
fundamental differences aimed at making it more efficient as an expression
528+
language, such as operators that directly support collection, array and string
529+
matching, as well as regular expressions.  MVEL is used to evaluate expressions
530+
written using Java syntax.
531+
532+
In addition to the expression language, MVEL serves as a templating language for
533+
configuration and string construction.")
524534
    (license license:asl2.0)))
525535
526536
(define-public java-lz4

549559
    (native-inputs
550560
     `(("mvel" ,java-mvel2)))
551561
    (home-page "https://jpountz.github.io/lz4-java"); or http://blog.jpountz.net/
552-
    (synopsis "")
553-
    (description "")
562+
    (synopsis "Compression algorithm")
563+
    (description "LZ4 - Java is a Java port of the popular lz4 compression
564+
algorithms and xxHash hashing algorithm.")
554565
    (license license:asl2.0)))
555566
556567
(define-public java-bouncycastle-bcprov

579590
     `(("unzip" ,unzip)
580591
       ("junit" ,java-junit)))
581592
    (home-page "https://www.bouncycastle.org")
582-
    (synopsis "")
593+
    (synopsis "Cryptographic library")
583594
    (description "")
584595
    (license license:expat)))
585596

611622
    (inputs
612623
     `(("bcprov" ,java-bouncycastle-bcprov)))
613624
    (home-page "https://www.bouncycastle.org")
614-
    (synopsis "")
625+
    (synopsis "Cryptographic library")
615626
    (description "")
616627
    (license license:expat)))
617628

636647
    (native-inputs
637648
     `(("junit" ,java-junit)))
638649
    (home-page "https://www.bouncycastle.org")
639-
    (synopsis "")
650+
    (synopsis "Cryptographic library")
640651
    (description "")
641652
    (license license:expat)))
642653

953964
       #:jdk ,icedtea-8
954965
       #:source-dir "clients/src/main/java"
955966
       #:test-dir "clients/src/test"
956-
       #:phases
957-
       (modify-phases %standard-phases
958-
         (add-before 'check 'exclude-base
959-
           (lambda _
960-
             (substitute* "build.xml"
961-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
962-
                (string-append "<include name=\"**/*Test.java\" />"
963-
                               ;; not a class
964-
                               "<exclude name=\"**/IntegrationTest.java\" />"
965-
                               ;; requires network
966-
                               "<exclude name=\"**/ClientUtilsTest.java\" />"
967-
                               ;; something is wrong with our powermock
968-
                               "<exclude name=\"**/KafkaProducerTest.java\" />"
969-
                               "<exclude name=\"**/BufferPoolTest.java\" />"))))))))
967+
       #:test-exclude
968+
       (list
969+
         ;; This file does not contain a class
970+
         "**/IntegrationTest.java"
971+
         ;; Requires network
972+
         "**/ClientUtilsTest.java"
973+
         ;; End with errors that seem related to our powermock
974+
         "**/KafkaProducerTest.java"
975+
         "**/BufferPoolTest.java")))
970976
    (inputs
971977
     `(("java-slf4j-api" ,java-slf4j-api)
972978
       ("java-lz4" ,java-lz4)))

14341440
     `(#:jar-name "jackson-core.jar"
14351441
       #:source-dir "src/main/java"
14361442
       #:test-dir "src/test"
1443+
       #:test-exclude
1444+
       (list
1445+
         ;; Expected failure.  pom.xml excludes these
1446+
         "**/failing/**"
1447+
         ;; Base classes that are not tests themeselves
1448+
         "**/BaseTest.java"
1449+
         "**/ConcurrencyReadTest.java"
1450+
         "**/ManualCharAccessTest.java"
1451+
         "**/ManualCharAccessTest.java"
1452+
         "**/TrailingCommasTest.java"
1453+
         "**/AsyncMissingValuesInObjectTest.java"
1454+
         "**/AsyncMissingValuesInArrayTest.java")
14371455
       #:phases
14381456
       (modify-phases %standard-phases
14391457
         (add-before 'configure 'generate-PackageVersion.java

14481466
                 (("@projectartifactid@") "jackson-core")))))
14491467
         (add-before 'build 'copy-resources
14501468
           (lambda _
1451-
             (mkdir-p "build/classes/META-INF")
1452-
             (for-each (lambda (file)
1453-
                         (copy-file file (string-append "build/classes/META-INF/"
1454-
                                                        (basename file))))
1455-
               (find-files "src/main/resources/META-INF/" ".*"))))
1469+
             (copy-recursively "src/main/resources"
1470+
                               "build/classes")))
14561471
         (add-before 'check 'copy-test-resources
14571472
           (lambda _
1458-
             (mkdir-p "build/test-classes")
1459-
             (for-each (lambda (file)
1460-
                         (copy-file file (string-append "build/classes"
1461-
                                                        (basename file))))
1462-
               (find-files "src/test/resources/" ".*\\.json"))))
1463-
         (add-before 'check 'exclude-base
1464-
           (lambda _
1465-
             ;; not really tests
1466-
             (substitute* "build.xml"
1467-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
1468-
                (string-append "<include name=\"**/*Test.java\" />"
1469-
                               "<exclude name=\"**/failing/**\" />"
1470-
                               "<exclude name=\"**/BaseTest.java\" />"
1471-
                               "<exclude name=\"**/ConcurrencyReadTest.java\" />"
1472-
                               "<exclude name=\"**/ManualCharAccessTest.java\" />"
1473-
                               "<exclude name=\"**/TrailingCommasTest.java\" />"
1474-
                               "<exclude name=\"**/AsyncMissingValuesInObjectTest.java\" />"
1475-
                               "<exclude name=\"**/AsyncMissingValuesInArrayTest.java\" />")))))
1476-
         (add-before 'build 'copy-resources
1477-
           (lambda _
1478-
             (mkdir-p "build/classes/META-INF")
1479-
             (for-each (lambda (file)
1480-
                         (copy-file file (string-append "build/classes/META-INF/"
1481-
                                                        (basename file))))
1482-
               (find-files "src/main/resources/META-INF/" ".*")))))))
1473+
             (copy-recursively "src/test/resources"
1474+
                               "build/test-classes"))))))
14831475
    (native-inputs
14841476
     `(("junit" ,java-junit)
14851477
       ("hamcrest" ,java-hamcrest-core)))

15511543
     `(#:jar-name "jackson-modules-base.jar"
15521544
       #:source-dir "jaxb/src/main/java"
15531545
       #:test-dir "jaxb/src/test"
1546+
       #:test-exclude
1547+
       ;; Base class for tests
1548+
       (list "**/BaseJaxbTest.java")
15541549
       #:phases
15551550
       (modify-phases %standard-phases
15561551
         (add-before 'configure 'generate-PackageVersion.java

15641559
                 (("@projectversion@") ,version)
15651560
                 (("@projectgroupid@") "com.fasterxml.jackson.module.jaxb")
15661561
                 (("@projectartifactid@") "jackson-module-jaxb")))))
1567-
         (add-before 'check 'disable-failing
1568-
           (lambda _
1569-
             (substitute* "build.xml"
1570-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
1571-
                (string-append "<include name=\"**/*Test.java\" />"
1572-
                               ;; The base class for tests, not a test in itself
1573-
                               "<exclude name=\"**/BaseJaxbTest.java\" />")))))
15741562
         (add-before 'build 'copy-resources
15751563
           (lambda _
1576-
             (mkdir-p "build/classes/META-INF")
1577-
             (for-each (lambda (file)
1578-
                         (copy-file file (string-append "build/classes/META-INF/"
1579-
                                                        (basename file))))
1580-
               (find-files "jaxb/src/main/resources/META-INF/" ".*")))))))
1564+
             (copy-recursively "jaxb/src/main/resources" "build/classes"))))))
15811565
    (inputs
15821566
     `(("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations)
15831567
       ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core)

16021586
    (build-system ant-build-system)
16031587
    (arguments
16041588
     `(#:jar-name "woodstox.jar"
1589+
       #:test-exclude
1590+
       (list "**/Base*.java" "failing/**")
16051591
       #:phases
16061592
       (modify-phases %standard-phases
16071593
         (add-before 'build 'remove-msv-dep
16081594
           (lambda _
16091595
             ;; we don't need osgi, and it depends on msv
16101596
             (delete-file-recursively "src/main/java/com/ctc/wstx/osgi")
1611-
             ;; msv's latest release is from 2011
1597+
             ;; msv's latest release is from 2011 and we don't need it
16121598
             (delete-file-recursively "src/main/java/com/ctc/wstx/msv")
16131599
             (delete-file-recursively "src/test/java/wstxtest/osgi")
16141600
             (delete-file-recursively "src/test/java/wstxtest/msv")))
1615-
         (add-before 'check 'remove-failing
1616-
           (lambda _
1617-
             (substitute* "build.xml"
1618-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
1619-
                (string-append "<include name=\"**/*Test.java\" />"
1620-
                               "<exclude name=\"**/Base*.java\" />"
1621-
                               "<exclude name=\"failing/**\" />")))))
16221601
         (add-before 'build 'copy-resources
16231602
           (lambda _
1624-
             (mkdir-p "build/classes/META-INF")
1625-
             (for-each (lambda (file)
1626-
                         (copy-file file (string-append "build/classes/META-INF/"
1627-
                                                        (basename file))))
1628-
               (find-files "src/main/resources/META-INF/" ".*")))))))
1603+
             (copy-recursively "src/main/resources" "build/classes"))))))
16291604
    (inputs
16301605
     `(("stax2" ,java-stax2-api)))
16311606
    (native-inputs

17881763
       (modify-phases %standard-phases
17891764
         (add-before 'check 'copy-test-resources
17901765
           (lambda* (#:key inputs #:allow-other-keys)
1791-
             (let ((dir (string-append (getcwd) "/../test-resources/")))
1792-
               (with-directory-excursion (assoc-ref inputs "resources")
1793-
                 (for-each (lambda (file)
1794-
                             (mkdir-p (dirname (string-append dir file)))
1795-
                             (copy-file file (string-append dir file)))
1796-
                   (find-files "." ".*"))))))
1797-
         (add-before 'check 'disable-non-tests
1798-
           (lambda _
1799-
             ;; not really tests
1800-
             (substitute* "build.xml"
1801-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
1802-
                (string-append "<include name=\"**/*Test.java\" />"
1803-
                               "<exclude name=\"**/Abstract*Test.java\" />"))))))))
1766+
             (copy-recursively (assoc-ref inputs "resources") "../test-resources"))))))
18041767
    (native-inputs
18051768
     `(("junit" ,java-junit)
18061769
       ("mockito" ,java-mockito-1)

18451808
       #:jdk ,icedtea-8
18461809
       #:source-dir "src/main/java"
18471810
       #:test-dir "src/test"
1811+
       #:test-include (list "**/*Tests.java")
1812+
       #:test-exclude
1813+
       (list
1814+
         "**/Abstract*.java"
1815+
         ;; Test failures
1816+
         "**/LocalVariableTableParameterNameDiscovererTests.java"
1817+
         "**/StandardReflectionParameterNameDiscoverTests.java"
1818+
         "**/SpringFactoriesLoaderTests.java"
1819+
         "**/PropertySourceTests.java"
1820+
         "**/StaxEventXMLReaderTests.java"
1821+
         "**/StaxStreamHandlerTests.java"
1822+
         ;; Unable to set MockitoNamingPolicy on cglib generator which creates FastClasses
1823+
         "**/util/StreamUtilsTests.java")
18481824
       #:phases
18491825
       (modify-phases %standard-phases
18501826
         (add-before 'configure 'chdir

18621838
                "import net.sf.cglib.core.DefaultNamingPolicy;\npublic class"))))
18631839
         (add-before 'check 'remove-log4j-1-dep
18641840
           (lambda _
1865-
             ;; this tests requires log4j-1 (not log4j-1.2-api)
1841+
             ;; These tests require log4j-1 (log4j-1.2-api doesn't work)
18661842
             (delete-file "src/test/java/org/springframework/util/MockLog4jAppender.java")
18671843
             (delete-file "src/test/java/org/springframework/util/Log4jConfigurerTests.java")))
1868-
         (add-before 'check 'select-tests
1869-
           (lambda _
1870-
             (substitute* "build.xml"
1871-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
1872-
                (string-append "<include name=\"**/*Tests.java\" />"
1873-
                               ;; these tests fail
1874-
                               "<exclude name=\"**/LocalVariableTableParameterNameDiscovererTests.java\" />"
1875-
                               "<exclude name=\"**/StandardReflectionParameterNameDiscoverTests.java\" />"
1876-
                               "<exclude name=\"**/SpringFactoriesLoaderTests.java\" />"
1877-
                               "<exclude name=\"**/PropertySourceTests.java\" />"
1878-
                               "<exclude name=\"**/StaxEventXMLReaderTests.java\" />"
1879-
                               "<exclude name=\"**/StaxStreamHandlerTests.java\" />"
1880-
                               ;; Unable to set MockitoNamingPolicy on cglib generator which creates FastClasses
1881-
                               "<exclude name=\"**/util/StreamUtilsTests.java\" />"
1882-
                               "<exclude name=\"**/Abstract*.java\" />")))))
18831844
         (add-before 'check 'copy-test-resources
18841845
           (lambda* (#:key inputs #:allow-other-keys)
18851846
             (let ((dir (string-append (getcwd) "/build/test-classes/")))

20371998
      `(#:tests? #f
20381999
        ,@(package-arguments java-snakeyaml)))))
20392000
2040-
(define-public java-ops4j-lang
2001+
(define-public java-ops4j-base-lang
20412002
  (package
2042-
    (name "java-ops4j-lang")
2003+
    (name "java-ops4j-base-lang")
20432004
    (version "1.5.0")
20442005
    (source (origin
20452006
              (method url-fetch)

20502011
                "18hl3lpchgpv8yh5rlk39l2gif5dlfgb8gxjmncf39pr2dprkniw"))))
20512012
    (build-system ant-build-system)
20522013
    (arguments
2053-
     `(#:jar-name "java-ops4j-lang.jar"
2014+
     `(#:jar-name "java-ops4j-base-lang.jar"
20542015
       #:source-dir "ops4j-base-lang/src/main/java"
20552016
       #:tests? #f; no tests
20562017
       #:phases

20632024
               (lambda _
20642025
                 (display
20652026
                   (string-append
2066-
                     "This jar was not created by maven!\n"
2067-
                     "This file was created to satisfy a test dependency in "
2068-
                     "ops4j-pax-exam-core-spi.\n")))))))))
2027+
                     "version=" ,version "\n"
2028+
                     "groupId=org.ops4j.base"
2029+
                     "artifactId=ops4j-base-lang\n")))))))))
20692030
    (home-page "https://ops4j1.jira.com/wiki/spaces/base/overview")
2070-
    (synopsis "")
2071-
    (description "")
2031+
    (synopsis "Utility classes and extensions to be used in OPS4J projects")
2032+
    (description "OPS4J stands for Open Participation Software for Java.  This
2033+
package contains utilities and extensions related to @code{java.lang}.")
20722034
    (license license:asl2.0)))
20732035
2074-
(define-public java-ops4j-monitors
2036+
(define-public java-ops4j-base-monitors
20752037
  (package
2076-
    (inherit java-ops4j-lang)
2077-
    (name "java-ops4j-monitors")
2038+
    (inherit java-ops4j-base-lang)
2039+
    (name "java-ops4j-base-monitors")
20782040
    (arguments
2079-
     `(#:jar-name "java-ops4j-monitors.jar"
2041+
     `(#:jar-name "java-ops4j-base-monitors.jar"
20802042
       #:source-dir "ops4j-base-monitors/src/main/java"
20812043
       #:tests? #f)); no tests
20822044
    (inputs
2083-
     `(("lang" ,java-ops4j-lang)))))
2045+
     `(("lang" ,java-ops4j-base-lang)))
2046+
    (description "OPS4J stands for Open Participation Software for Java.  This
2047+
package contains utilities and extensions related to monitoring.")))
20842048
2085-
(define-public java-ops4j-io
2049+
(define-public java-ops4j-base-io
20862050
  (package
2087-
    (inherit java-ops4j-lang)
2088-
    (name "java-ops4j-io")
2051+
    (inherit java-ops4j-base-lang)
2052+
    (name "java-ops4j-base-io")
20892053
    (arguments
2090-
     `(#:jar-name "java-ops4j-io.jar"
2054+
     `(#:jar-name "java-ops4j-base-io.jar"
20912055
       #:source-dir "ops4j-base-io/src/main/java"
20922056
       #:test-dir "ops4j-base-io/src/test"
2093-
       #:phases
2094-
       (modify-phases %standard-phases
2095-
         (add-before 'check 'disable-failing
2096-
           (lambda _
2097-
             (substitute* "build.xml"
2098-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
2099-
                (string-append "<include name=\"**/*Test.java\" />"
2100-
                               "<exclude name=\"**/ListerTest.java\" />"))))))))
2057+
       #:test-exclude
2058+
       (list "**/ListerTest.java")))
21012059
    (inputs
2102-
     `(("lang" ,java-ops4j-monitors)
2103-
       ("lang" ,java-ops4j-lang)))
2060+
     `(("lang" ,java-ops4j-base-monitors)
2061+
       ("lang" ,java-ops4j-base-lang)))
21042062
    (native-inputs
21052063
     `(("junit" ,java-junit)
2106-
       ("hamcrest" ,java-hamcrest-core)))))
2064+
       ("hamcrest" ,java-hamcrest-core)))
2065+
    (description "OPS4J stands for Open Participation Software for Java.  This
2066+
package contains utilities and extensions related to handling streams and files.")))
21072067
2108-
(define-public java-ops4j-util
2068+
(define-public java-ops4j-base-util
21092069
  (package
2110-
    (inherit java-ops4j-lang)
2111-
    (name "java-ops4j-util")
2070+
    (inherit java-ops4j-base-lang)
2071+
    (name "java-ops4j-base-util")
21122072
    (arguments
2113-
     `(#:jar-name "java-ops4j-util.jar"
2073+
     `(#:jar-name "java-ops4j-base-util.jar"
21142074
       #:source-dir "ops4j-base-util/src/main/java"
21152075
       #:test-dir "ops4j-base-util/src/test"))
21162076
    (inputs
2117-
     `(("lang" ,java-ops4j-lang)))
2077+
     `(("lang" ,java-ops4j-base-lang)))
21182078
    (native-inputs
2119-
     `(("junit" ,java-junit)))))
2079+
     `(("junit" ,java-junit)))
2080+
    (description "OPS4J stands for Open Participation Software for Java.  This
2081+
package contains utilities and extensions related to environment, i18n and
2082+
mime types.")))
21202083
2121-
(define-public java-ops4j-util-property
2084+
(define-public java-ops4j-base-util-property
21222085
  (package
2123-
    (inherit java-ops4j-lang)
2124-
    (name "java-ops4j-util-property")
2086+
    (inherit java-ops4j-base-lang)
2087+
    (name "java-ops4j-base-util-property")
21252088
    (arguments
2126-
     `(#:jar-name "java-ops4j-util-property.jar"
2089+
     `(#:jar-name "java-ops4j-base-util-property.jar"
21272090
       #:source-dir "ops4j-base-util-property/src/main/java"
21282091
       #:tests? #f)); no tests
21292092
    (inputs
2130-
     `(("lang" ,java-ops4j-lang)
2131-
       ("util" ,java-ops4j-util)))))
2093+
     `(("lang" ,java-ops4j-base-lang)
2094+
       ("util" ,java-ops4j-base-util)))
2095+
    (description "OPS4J stands for Open Participation Software for Java.  This
2096+
package contains utilities and extensions related to resolving properties from
2097+
different sources.")))
21322098
2133-
(define-public java-ops4j-store
2099+
(define-public java-ops4j-base-store
21342100
  (package
2135-
    (inherit java-ops4j-lang)
2136-
    (name "java-ops4j-store")
2101+
    (inherit java-ops4j-base-lang)
2102+
    (name "java-ops4j-base-store")
21372103
    (arguments
2138-
     `(#:jar-name "java-ops4j-store.jar"
2104+
     `(#:jar-name "java-ops4j-base-store.jar"
21392105
       #:source-dir "ops4j-base-store/src/main/java"
21402106
       #:tests? #f)); no tests
21412107
    (inputs
2142-
     `(("lang" ,java-ops4j-lang)
2108+
     `(("lang" ,java-ops4j-base-lang)
21432109
       ("slf4j" ,java-slf4j-api)
2144-
       ("io" ,java-ops4j-io)))))
2110+
       ("io" ,java-ops4j-base-io)))
2111+
    (description "OPS4J stands for Open Participation Software for Java.  This
2112+
package contains utilities for storing and retrieving data from an
2113+
@code{InputStream}.")))
21452114
2146-
(define-public java-ops4j-spi
2115+
(define-public java-ops4j-base-spi
21472116
  (package
2148-
    (inherit java-ops4j-lang)
2149-
    (name "java-ops4j-spi")
2117+
    (inherit java-ops4j-base-lang)
2118+
    (name "java-ops4j-base-spi")
21502119
    (arguments
2151-
     `(#:jar-name "java-ops4j-spi.jar"
2120+
     `(#:jar-name "java-ops4j-base-spi.jar"
21522121
       #:source-dir "ops4j-base-spi/src/main/java"
21532122
       #:test-dir "ops4j-base-spi/src/test"))
21542123
    (native-inputs
21552124
     `(("junit" ,java-junit)
2156-
       ("hamcrest" ,java-hamcrest-core)))))
2125+
       ("hamcrest" ,java-hamcrest-core)))
2126+
    (description "OPS4J stands for Open Participation Software for Java.  This
2127+
package contains utilities for obtaining services via the Java SE 6
2128+
@code{ServiceLoader}.")))
21572129
21582130
(define-public java-aqute-bndlib
21592131
  (package

21632135
              (method url-fetch)
21642136
              (uri (string-append "https://github.com/bndtools/bnd/archive/"
21652137
                                  version ".REL.tar.gz"))
2138+
              (file-name (string-append name "-" version ".tar.gz"))
21662139
              (sha256
21672140
               (base32
21682141
                "09vgb6axikbz66zi9falijbnzh1qnp9ysfns123dmzdb01cbza9q"))))

21852158
       ("java-osgi-namespace-service" ,java-osgi-namespace-service)
21862159
       ("promise" ,java-osgi-util-promise)
21872160
       ("osgi" ,java-osgi-core)))
2188-
    (home-page "")
2189-
    (synopsis "")
2190-
    (description "")
2161+
    (home-page "http://bnd.bndtools.org/")
2162+
    (synopsis "Tools for OSGi")
2163+
    (description "Bnd is a swiss army knife for OSGi, it creates manifest
2164+
headers based on analyzing the class code, it verifies the project settings,
2165+
it manages project dependencies, gives diffs jars, and much more.")
21912166
    (license license:asl2.0)))
21922167
21932168
(define-public java-aqute-libg

22282203
    (arguments
22292204
     `(#:jar-name "java-ops4j-pax-tinybundles.jar"
22302205
       #:source-dir "src/main/java"
2206+
       #:test-exclude
2207+
       ;; Abstract base classes for other tests
2208+
       (list "**/BndTest.java" "**/CoreTest.java")
22312209
       #:phases
22322210
       (modify-phases %standard-phases
22332211
         (add-before 'check 'fix-version
22342212
           (lambda _
2235-
             ;; I think the test has a hard reference to an old version of bndlib
2236-
             ;; we are not using. This is the version referenced in the pom.xml.
2213+
             ;; This test has a reference to an old version of bndlib we are not
2214+
             ;; packaging.  It uses the version referenced in pom.xml.  We replace
2215+
             ;; it with our own version.
22372216
             (substitute* "src/test/java/org/ops4j/pax/tinybundles/bnd/BndTest.java"
2238-
               (("2.4.0.201411031534") "3.4.0"))
2239-
             (substitute* "build.xml"
2240-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
2241-
                (string-append "<include name=\"**/*Test.java\" />"
2242-
                               ;; Base classes for other tests
2243-
                               "<exclude name=\"**/BndTest.java\" />"
2244-
                               "<exclude name=\"**/CoreTest.java\" />"))))))))
2245-
    (inputs
2246-
     `(("lang" ,java-ops4j-lang)
2247-
       ("io" ,java-ops4j-io)
2248-
       ("store" ,java-ops4j-store)
2217+
               (("2.4.0.201411031534") "3.4.0")))))))
2218+
    (inputs
2219+
     `(("lang" ,java-ops4j-base-lang)
2220+
       ("io" ,java-ops4j-base-io)
2221+
       ("store" ,java-ops4j-base-store)
22492222
       ("slf4j" ,java-slf4j-api)
22502223
       ("libg" ,java-aqute-libg)
22512224
       ("bndlib" ,java-aqute-bndlib)))

22572230
       ("framework" ,java-osgi-framework)))
22582231
    (build-system ant-build-system)
22592232
    (home-page "https://ops4j1.jira.com/wiki/spaces/ops4j/pages/12060312/Tinybundles")
2260-
    (synopsis "")
2261-
    (description "")
2233+
    (synopsis "Java APIs to create OSGi related artifacts")
2234+
    (description "Tinybundles is all about creating OSGi related artifacts like
2235+
Bundles, Fragments and Deployment Packages with Java Api.  It is very convinient
2236+
to create such artifacts on-the-fly inside Tests (like in Pax Exam).  On the
2237+
other hand, this library can be a foundation of real end user tools that need
2238+
to create those artifacts.")
22622239
    (license license:asl2.0)))
22632240
22642241
(define-public java-ops4j-pax-exam-core

22782255
       #:test-dir "core/pax-exam/src/test"))
22792256
    (inputs
22802257
     `(("slf4j" ,java-slf4j-api)
2281-
       ("lang" ,java-ops4j-lang)
2282-
       ("io" ,java-ops4j-io)
2283-
       ("util-property" ,java-ops4j-util-property)
2284-
       ("util-store" ,java-ops4j-store)
2258+
       ("lang" ,java-ops4j-base-lang)
2259+
       ("io" ,java-ops4j-base-io)
2260+
       ("util-property" ,java-ops4j-base-util-property)
2261+
       ("util-store" ,java-ops4j-base-store)
22852262
       ("java-osgi-core" ,java-osgi-core)))
22862263
    (native-inputs
22872264
     `(("junit" ,java-junit)
22882265
       ("hamcrest" ,java-hamcrest-core)))
22892266
    (build-system ant-build-system)
22902267
    (home-page "https://ops4j1.jira.com/wiki/spaces/PAXEXAM4/overview")
2291-
    (synopsis "")
2292-
    (description "")
2268+
    (synopsis "In-Container Testing for OSGi, Java EE and CDI")
2269+
    (description "Pax Exam creates OSGi bundles for testing purposes.  It lets
2270+
the user take control of the OSGi framework, the test framework (e.g. JUnit) and
2271+
the system under test at the same time.")
22932272
    (license license:asl2.0)))
22942273
22952274
(define-public java-ops4j-pax-exam-core-spi

22982277
    (name "java-ops4j-pax-exam-core-spi")
22992278
    (arguments
23002279
     `(#:jar-name "java-ops4j-pax-exam-spi.jar"
2301-
       #:source-dir "core/pax-exam-spi/src/main/java"
2302-
       #:test-dir "core/pax-exam-spi/src/test"
2280+
       #:source-dir "src/main/java"
2281+
       #:test-exclude
2282+
       (list
2283+
         ;; Abstract base class, not a test
2284+
         "**/BaseStagedReactorTest.java"
2285+
         ;; Depends on org.mortbay.jetty.testwars:test-war-dump
2286+
         "**/WarBuilderTest.java")
23032287
       #:phases
23042288
       (modify-phases %standard-phases
2289+
         (add-before 'configure 'chdir
2290+
           (lambda _
2291+
             ;; Tests assume we are in this directory
2292+
             (chdir "core/pax-exam-spi")))
23052293
         (add-before 'check 'fix-tests
23062294
           (lambda _
2295+
             ;; One test checks that this file is present.
23072296
             (mkdir-p "build/classes/META-INF/maven/org.ops4j.pax.exam/pax-exam-spi")
23082297
             (with-output-to-file "build/classes/META-INF/maven/org.ops4j.pax.exam/pax-exam-spi/pom.properties"
23092298
               (lambda _
2310-
                 (display "This jar was not created by maven!\n")))
2311-
             (substitute* "core/pax-exam-spi/src/test/java/org/ops4j/pax/exam/spi/war/FileFinderTest.java"
2312-
               (("src/main") "core/pax-exam-spi/src/main")
2313-
               (("src/test") "core/pax-exam-spi/src/test")
2314-
               (("\"src\"") "\"core/pax-exam-spi/src\""))
2315-
             (substitute* "core/pax-exam-spi/src/test/java/org/ops4j/pax/exam/spi/war/JarBuilderTest.java"
2316-
               (("src/test") "core/pax-exam-spi/src/test"))
2317-
             (substitute* "core/pax-exam-spi/src/test/java/org/ops4j/pax/exam/spi/war/WarBuilderTest.java"
2318-
               (("src/test") "core/pax-exam-spi/src/test")
2319-
               (("target/") "build/"))
2320-
             (substitute* "core/pax-exam-spi/src/test/java/org/ops4j/pax/exam/spi/war/WarTestProbeBuilderTest.java"
2321-
               (("src/test") "core/pax-exam-spi/src/test")
2322-
               (("target/") "build/"))
2323-
             (substitute* "core/pax-exam-spi/src/test/java/org/ops4j/pax/exam/spi/war/ZipBuilderTest.java"
2299+
                 (display
2300+
                   (string-append "artifactId = pax-exam-spi\n"
2301+
                                  "version = " ,(package-version java-ops4j-pax-exam-core-spi)))))
2302+
             ;; Maven puts compilation results in the target directory, while we
2303+
             ;; put them in the build directory.
2304+
             (substitute* '("src/test/java/org/ops4j/pax/exam/spi/war/WarBuilderTest.java"
2305+
                            "src/test/java/org/ops4j/pax/exam/spi/war/WarTestProbeBuilderTest.java"
2306+
                            "src/test/java/org/ops4j/pax/exam/spi/war/ZipBuilderTest.java")
23242307
               (("target") "build"))
2325-
             (substitute* "core/pax-exam-spi/src/test/java/org/ops4j/pax/exam/spi/reactors/BaseStagedReactorTest.java"
2326-
               (("AssertionError") "IllegalArgumentException"))
2327-
             (substitute* "build.xml"
2328-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
2329-
                (string-append "<include name=\"**/*Test.java\" />"
2330-
                               ;; Base class, not a test
2331-
                               "<exclude name=\"**/BaseStagedReactorTest.java\" />"
2332-
                               ;; Depends on org.mortbay.jetty.testwars:test-war-dump
2333-
                               "<exclude name=\"**/WarBuilderTest.java\" />"))))))))
2308+
             ;; One test is expected to fail, but it doesn't throw the expected exception
2309+
             (substitute* "src/test/java/org/ops4j/pax/exam/spi/reactors/BaseStagedReactorTest.java"
2310+
               (("AssertionError") "IllegalArgumentException")))))))
23342311
    (inputs
23352312
     `(("java-ops4j-pax-exam-core" ,java-ops4j-pax-exam-core)
2336-
       ("lang" ,java-ops4j-lang)
2337-
       ("monitors" ,java-ops4j-monitors)
2338-
       ("store" ,java-ops4j-store)
2339-
       ("io" ,java-ops4j-io)
2340-
       ("spi" ,java-ops4j-spi)
2313+
       ("lang" ,java-ops4j-base-lang)
2314+
       ("monitors" ,java-ops4j-base-monitors)
2315+
       ("store" ,java-ops4j-base-store)
2316+
       ("io" ,java-ops4j-base-io)
2317+
       ("spi" ,java-ops4j-base-spi)
23412318
       ("osgi" ,java-osgi-core)
23422319
       ("slf4j" ,java-slf4j-api)
23432320
       ("tinybundles" ,java-ops4j-pax-tinybundles)))

23802357
    (arguments
23812358
     `(#:jar-name "jackson-dataformat-yaml.jar"
23822359
       #:source-dir "src/main/java"
2360+
       #:test-exclude (list "**/failing/**.java")
23832361
       #:phases
23842362
       (modify-phases %standard-phases
23852363
         (add-before 'configure 'generate-PackageVersion.java

23912369
                 (("@package@") "com.fasterxml.jackson.dataformat.yaml")
23922370
                 (("@projectversion@") ,version)
23932371
                 (("@projectgroupid@") "com.fasterxml.jackson.dataformat.yaml")
2394-
                 (("@projectartifactid@") "jackson-dataformat-yaml")))))
2395-
         (add-before 'check 'activate-all-tests
2396-
           (lambda _
2397-
             (substitute* "build.xml"
2398-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
2399-
                (string-append "<include name=\"**/*Test.java\" />"
2400-
                               "<exclude name=\"**/failing/**.java\" />"))))))))
2372+
                 (("@projectartifactid@") "jackson-dataformat-yaml"))))))))
24012373
    (inputs
24022374
     `(("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations)
24032375
       ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core)

28912863
    (arguments
28922864
     `(#:jar-name "java-fest-assert.jar"
28932865
       #:source-dir "src/main/java"
2894-
       #:phases
2895-
       (modify-phases %standard-phases
2896-
         (add-before 'check 'activate-all-tests
2897-
           (lambda _
2898-
             (substitute* "build.xml"
2899-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
2900-
                (string-append "<include name=\"**/*Test.java\" />"
2901-
                               ;; Unable to set MockitoNamingPolicy on cglib
2902-
                               ;; generator which creates FastClasses
2903-
                               "<exclude name=\"**/MessageFormatter_format_Test.java\" />"
2904-
                               "<exclude name=\"**/internal/*/*_assert*_Test.java\" />"
2905-
                               ;; Not tests
2906-
                               "<exclude name=\"**/Abstract*.java\" />"
2907-
                               "<exclude name=\"**/*BaseTest.java\" />"))))))))
2866+
       #:test-exclude
2867+
       (list
2868+
         "**/Abstract*.java"
2869+
         "**/*BaseTest.java"
2870+
         ;; Unable to set MockitoNamingPolicy on cglib generator which creates FastClasses
2871+
         "**/MessageFormatter_format_Test.java"
2872+
         "**/internal/*/*_assert*_Test.java")))
29082873
    (inputs
29092874
     `(("java-fest-util" ,java-fest-util)))
29102875
    (native-inputs

29832948
     `(#:jar-name "java-jeromq.jar"
29842949
       #:source-dir "src/main/java"
29852950
       #:jdk ,icedtea-8
2986-
       #:phases
2987-
       (modify-phases %standard-phases
2988-
         (add-before 'check 'remove-failing
2989-
           (lambda _
2990-
             (substitute* "build.xml"
2991-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
2992-
                (string-append "<include name=\"**/*Test.java\" />"
2993-
                               ;; Requires network
2994-
                               "<exclude name=\"**/ZBeaconTest.java\" />"
2995-
                               ;; FIXME: I don't know why it fails
2996-
                               "<exclude name=\"**/CustomDecoderTest.java\" />"
2997-
                               "<exclude name=\"**/CustomEncoderTest.java\" />"
2998-
                               ;; Not tests
2999-
                               "<exclude name=\"**/Abstract*.java\" />"))))))))
2951+
       #:test-exclude
2952+
       (list
2953+
         "**/Abstract*.java"
2954+
         ;; Requires network
2955+
         "**/ZBeaconTest.java"
2956+
         ;; FIXME: investigate test failure
2957+
         "**/CustomDecoderTest.java"
2958+
         "**/CustomEncoderTest.java")))
30002959
    (inputs
30012960
     `(("java-jnacl" ,java-jnacl)))
30022961
    (native-inputs

31953154
       #:source-dir "log4j-1.2-api/src/main/java"
31963155
       #:test-dir "log4j-1.2-api/src/test"
31973156
       #:jdk ,icedtea-8
3198-
       #:tests? #f; requires maven
3199-
       #:phases
3200-
       (modify-phases %standard-phases
3201-
         (add-before 'check 'copy-classes
3202-
           (lambda _
3203-
             (mkdir-p "log4j-1.2-api/src/test/java/org/apache/logging/log4j/test/appender")
3204-
             (copy-file "log4j-core/src/test/java/org/apache/logging/log4j/test/appender/ListAppender.java"
3205-
                        "log4j-1.2-api/src/test/java/org/apache/logging/log4j/test/appender/ListAppender.java")
3206-
             (mkdir-p "log4j-1.2-api/src/test/java/org/apache/logging/log4j/junit")
3207-
             (copy-file "log4j-core/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java"
3208-
                        "log4j-1.2-api/src/test/java/org/apache/logging/log4j/junit/LoggerContextRule.java")
3209-
             (mkdir-p "log4j-1.2-api/src/test/java/org/apache/logging/log4j/osgi/equinox")
3210-
             (copy-file "log4j-api/src/test/java/org/apache/logging/log4j/osgi/equinox/AbstractEquinoxLoadBundleTest.java"
3211-
                        "log4j-1.2-api/src/test/java/org/apache/logging/log4j/osgi/equinox/AbstractEquinoxLoadBundleTest.java")
3212-
             (mkdir-p "log4j-1.2-api/src/test/java/org/apache/logging/log4j/osgi/felix")
3213-
             (copy-file "log4j-api/src/test/java/org/apache/logging/log4j/osgi/OsgiRule.java"
3214-
                        "log4j-1.2-api/src/test/java/org/apache/logging/log4j/osgi/OsgiRule.java")
3215-
             (copy-file "log4j-api/src/test/java/org/apache/logging/log4j/osgi/BundleTestInfo.java"
3216-
                        "log4j-1.2-api/src/test/java/org/apache/logging/log4j/osgi/BundleTestInfo.java")
3217-
             (copy-file "log4j-api/src/test/java/org/apache/logging/log4j/osgi/AbstractLoadBundleTest.java"
3218-
                        "log4j-1.2-api/src/test/java/org/apache/logging/log4j/osgi/AbstractLoadBundleTest.java")
3219-
             (copy-file "log4j-api/src/test/java/org/apache/logging/log4j/osgi/felix/AbstractFelixLoadBundleTest.java"
3220-
                        "log4j-1.2-api/src/test/java/org/apache/logging/log4j/osgi/felix/AbstractFelixLoadBundleTest.java"))))))
3157+
       ;#:tests? #f; requires maven
3158+
       #:phases
3159+
       (modify-phases %standard-phases
3160+
         (add-before 'check 'copy-test-classes
3161+
           (lambda _
3162+
             (let ((from "log4j-core/src/test/java/org/apache/logging/log4j/")
3163+
                   (to "log4j-1.2-api/src/test/java/org/apache/logging/log4j/"))
3164+
               (for-each (lambda (file)
3165+
                           (mkdir-p (dirname (string-append to file)))
3166+
                           (copy-file (string-append from file)
3167+
                                      (string-append to file)))
3168+
                 '("test/appender/ListAppender.java"
3169+
                   "junit/LoggerContextRule.java"
3170+
                   "osgi/equinox/AbstractEquinoxLoadBundleTest.java"
3171+
                   "osgi/OsgiRule.java"
3172+
                   "osgi/BundleTestInfo.java"
3173+
                   "osgi/AbstractLoadBundleTest.java"
3174+
                   "osgi/felix/AbstractFelixLoadBundleTest.java"))))))))
32213175
    (inputs
32223176
     `(("log4j-api" ,java-log4j-api)
32233177
       ("log4j-core" ,java-log4j-core)

42494203
    (arguments
42504204
     `(#:jar-name (string-append ,name "-" ,version ".jar")
42514205
       #:source-dir "src/main/java"
4252-
       #:phases
4253-
       (modify-phases %standard-phases
4254-
         (add-before 'check 'activate-all-tests
4255-
           (lambda _
4256-
             (substitute* "build.xml"
4257-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
4258-
                (string-append "<include name=\"**/Test*.java\" />"
4259-
                               "<exclude name=\"**/test*/**.java\" />"))))))))
4206+
       #:test-eclude (list "**/test*/**.java")))
42604207
    (inputs
42614208
     `(("java-guava" ,java-guava)))
42624209
    (native-inputs

42834230
    (arguments
42844231
     `(#:jar-name "java-joda-time.jar"
42854232
       #:source-dir "src/main/java"
4233+
       #:test-include (list "**/Test*.java")
4234+
       #:test-exclude (list "**/Test*Chronology.java" "**/Test*Field.java")
42864235
       #:phases
42874236
       (modify-phases %standard-phases
42884237
         (add-after 'build 'build-resources

43164265
             (for-each (lambda (file)
43174266
                         (copy-file file (string-append "build/test-classes/"
43184267
                                                        (basename file))))
4319-
               (find-files "src/test/resources/" ".*"))))
4320-
         (add-before 'check 'exclude-non-tests
4321-
           (lambda _
4322-
             (substitute* "build.xml"
4323-
               (("<include name=\"\\*\\*/\\*Test.java\" />")
4324-
                (string-append "<include name=\"**/Test*.java\" />"
4325-
                               "<exclude name=\"**/Test*Chronology.java\" />"
4326-
                               "<exclude name=\"**/Test*Field.java\" />"))))))))
4268+
               (find-files "src/test/resources/" ".*")))))))
43274269
    (inputs
43284270
     `(("java-joda-convert" ,java-joda-convert)))
43294271
    (native-inputs