java: update descriptions
more/packages/java.scm
423 | 423 | (install-jars "build"))))) | |
424 | 424 | (home-page "http://jdom.org/") | |
425 | 425 | (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 | |
427 | 427 | outputting XML data from Java code.") | |
428 | 428 | (license license:bsd-4))) | |
429 | 429 | ||
430 | + | ;; As of 2010-09-01, the ORO project is retired | |
430 | 431 | (define-public java-jakarta-oro | |
431 | 432 | (package | |
432 | 433 | (name "java-jakarta-oro") | |
… | |||
450 | 451 | (replace 'install | |
451 | 452 | (install-jars ,(string-append "jakarta-oro-" version)))))) | |
452 | 453 | (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.") | |
455 | 461 | (license license:asl2.0))) | |
456 | 462 | ||
457 | 463 | (define-public java-jdom | |
… | |||
494 | 500 | (arguments | |
495 | 501 | `(#:jar-name "mvel2.jar" | |
496 | 502 | #:source-dir "src/main/java" | |
503 | + | #:test-exclude | |
504 | + | (list "**/Abstract*.java" | |
505 | + | ;; Base class with no tests | |
506 | + | "**/MVELThreadTest.java") | |
497 | 507 | #:phases | |
498 | 508 | (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\" />"))))) | |
506 | 509 | (add-after 'install 'install-bin | |
507 | 510 | (lambda* (#:key outputs #:allow-other-keys) | |
508 | 511 | (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) | |
… | |||
519 | 522 | `(("junit" ,java-junit) | |
520 | 523 | ("hamcrest" ,java-hamcrest-core))) | |
521 | 524 | (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.") | |
524 | 534 | (license license:asl2.0))) | |
525 | 535 | ||
526 | 536 | (define-public java-lz4 | |
… | |||
549 | 559 | (native-inputs | |
550 | 560 | `(("mvel" ,java-mvel2))) | |
551 | 561 | (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.") | |
554 | 565 | (license license:asl2.0))) | |
555 | 566 | ||
556 | 567 | (define-public java-bouncycastle-bcprov | |
… | |||
579 | 590 | `(("unzip" ,unzip) | |
580 | 591 | ("junit" ,java-junit))) | |
581 | 592 | (home-page "https://www.bouncycastle.org") | |
582 | - | (synopsis "") | |
593 | + | (synopsis "Cryptographic library") | |
583 | 594 | (description "") | |
584 | 595 | (license license:expat))) | |
585 | 596 | ||
… | |||
611 | 622 | (inputs | |
612 | 623 | `(("bcprov" ,java-bouncycastle-bcprov))) | |
613 | 624 | (home-page "https://www.bouncycastle.org") | |
614 | - | (synopsis "") | |
625 | + | (synopsis "Cryptographic library") | |
615 | 626 | (description "") | |
616 | 627 | (license license:expat))) | |
617 | 628 | ||
… | |||
636 | 647 | (native-inputs | |
637 | 648 | `(("junit" ,java-junit))) | |
638 | 649 | (home-page "https://www.bouncycastle.org") | |
639 | - | (synopsis "") | |
650 | + | (synopsis "Cryptographic library") | |
640 | 651 | (description "") | |
641 | 652 | (license license:expat))) | |
642 | 653 | ||
… | |||
953 | 964 | #:jdk ,icedtea-8 | |
954 | 965 | #:source-dir "clients/src/main/java" | |
955 | 966 | #: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"))) | |
970 | 976 | (inputs | |
971 | 977 | `(("java-slf4j-api" ,java-slf4j-api) | |
972 | 978 | ("java-lz4" ,java-lz4))) | |
… | |||
1434 | 1440 | `(#:jar-name "jackson-core.jar" | |
1435 | 1441 | #:source-dir "src/main/java" | |
1436 | 1442 | #: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") | |
1437 | 1455 | #:phases | |
1438 | 1456 | (modify-phases %standard-phases | |
1439 | 1457 | (add-before 'configure 'generate-PackageVersion.java | |
… | |||
1448 | 1466 | (("@projectartifactid@") "jackson-core"))))) | |
1449 | 1467 | (add-before 'build 'copy-resources | |
1450 | 1468 | (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"))) | |
1456 | 1471 | (add-before 'check 'copy-test-resources | |
1457 | 1472 | (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")))))) | |
1483 | 1475 | (native-inputs | |
1484 | 1476 | `(("junit" ,java-junit) | |
1485 | 1477 | ("hamcrest" ,java-hamcrest-core))) | |
… | |||
1551 | 1543 | `(#:jar-name "jackson-modules-base.jar" | |
1552 | 1544 | #:source-dir "jaxb/src/main/java" | |
1553 | 1545 | #:test-dir "jaxb/src/test" | |
1546 | + | #:test-exclude | |
1547 | + | ;; Base class for tests | |
1548 | + | (list "**/BaseJaxbTest.java") | |
1554 | 1549 | #:phases | |
1555 | 1550 | (modify-phases %standard-phases | |
1556 | 1551 | (add-before 'configure 'generate-PackageVersion.java | |
… | |||
1564 | 1559 | (("@projectversion@") ,version) | |
1565 | 1560 | (("@projectgroupid@") "com.fasterxml.jackson.module.jaxb") | |
1566 | 1561 | (("@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\" />"))))) | |
1574 | 1562 | (add-before 'build 'copy-resources | |
1575 | 1563 | (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")))))) | |
1581 | 1565 | (inputs | |
1582 | 1566 | `(("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations) | |
1583 | 1567 | ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core) | |
… | |||
1602 | 1586 | (build-system ant-build-system) | |
1603 | 1587 | (arguments | |
1604 | 1588 | `(#:jar-name "woodstox.jar" | |
1589 | + | #:test-exclude | |
1590 | + | (list "**/Base*.java" "failing/**") | |
1605 | 1591 | #:phases | |
1606 | 1592 | (modify-phases %standard-phases | |
1607 | 1593 | (add-before 'build 'remove-msv-dep | |
1608 | 1594 | (lambda _ | |
1609 | 1595 | ;; we don't need osgi, and it depends on msv | |
1610 | 1596 | (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 | |
1612 | 1598 | (delete-file-recursively "src/main/java/com/ctc/wstx/msv") | |
1613 | 1599 | (delete-file-recursively "src/test/java/wstxtest/osgi") | |
1614 | 1600 | (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/**\" />"))))) | |
1622 | 1601 | (add-before 'build 'copy-resources | |
1623 | 1602 | (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")))))) | |
1629 | 1604 | (inputs | |
1630 | 1605 | `(("stax2" ,java-stax2-api))) | |
1631 | 1606 | (native-inputs | |
… | |||
1788 | 1763 | (modify-phases %standard-phases | |
1789 | 1764 | (add-before 'check 'copy-test-resources | |
1790 | 1765 | (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")))))) | |
1804 | 1767 | (native-inputs | |
1805 | 1768 | `(("junit" ,java-junit) | |
1806 | 1769 | ("mockito" ,java-mockito-1) | |
… | |||
1845 | 1808 | #:jdk ,icedtea-8 | |
1846 | 1809 | #:source-dir "src/main/java" | |
1847 | 1810 | #: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") | |
1848 | 1824 | #:phases | |
1849 | 1825 | (modify-phases %standard-phases | |
1850 | 1826 | (add-before 'configure 'chdir | |
… | |||
1862 | 1838 | "import net.sf.cglib.core.DefaultNamingPolicy;\npublic class")))) | |
1863 | 1839 | (add-before 'check 'remove-log4j-1-dep | |
1864 | 1840 | (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) | |
1866 | 1842 | (delete-file "src/test/java/org/springframework/util/MockLog4jAppender.java") | |
1867 | 1843 | (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\" />"))))) | |
1883 | 1844 | (add-before 'check 'copy-test-resources | |
1884 | 1845 | (lambda* (#:key inputs #:allow-other-keys) | |
1885 | 1846 | (let ((dir (string-append (getcwd) "/build/test-classes/"))) | |
… | |||
2037 | 1998 | `(#:tests? #f | |
2038 | 1999 | ,@(package-arguments java-snakeyaml))))) | |
2039 | 2000 | ||
2040 | - | (define-public java-ops4j-lang | |
2001 | + | (define-public java-ops4j-base-lang | |
2041 | 2002 | (package | |
2042 | - | (name "java-ops4j-lang") | |
2003 | + | (name "java-ops4j-base-lang") | |
2043 | 2004 | (version "1.5.0") | |
2044 | 2005 | (source (origin | |
2045 | 2006 | (method url-fetch) | |
… | |||
2050 | 2011 | "18hl3lpchgpv8yh5rlk39l2gif5dlfgb8gxjmncf39pr2dprkniw")))) | |
2051 | 2012 | (build-system ant-build-system) | |
2052 | 2013 | (arguments | |
2053 | - | `(#:jar-name "java-ops4j-lang.jar" | |
2014 | + | `(#:jar-name "java-ops4j-base-lang.jar" | |
2054 | 2015 | #:source-dir "ops4j-base-lang/src/main/java" | |
2055 | 2016 | #:tests? #f; no tests | |
2056 | 2017 | #:phases | |
… | |||
2063 | 2024 | (lambda _ | |
2064 | 2025 | (display | |
2065 | 2026 | (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"))))))))) | |
2069 | 2030 | (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}.") | |
2072 | 2034 | (license license:asl2.0))) | |
2073 | 2035 | ||
2074 | - | (define-public java-ops4j-monitors | |
2036 | + | (define-public java-ops4j-base-monitors | |
2075 | 2037 | (package | |
2076 | - | (inherit java-ops4j-lang) | |
2077 | - | (name "java-ops4j-monitors") | |
2038 | + | (inherit java-ops4j-base-lang) | |
2039 | + | (name "java-ops4j-base-monitors") | |
2078 | 2040 | (arguments | |
2079 | - | `(#:jar-name "java-ops4j-monitors.jar" | |
2041 | + | `(#:jar-name "java-ops4j-base-monitors.jar" | |
2080 | 2042 | #:source-dir "ops4j-base-monitors/src/main/java" | |
2081 | 2043 | #:tests? #f)); no tests | |
2082 | 2044 | (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."))) | |
2084 | 2048 | ||
2085 | - | (define-public java-ops4j-io | |
2049 | + | (define-public java-ops4j-base-io | |
2086 | 2050 | (package | |
2087 | - | (inherit java-ops4j-lang) | |
2088 | - | (name "java-ops4j-io") | |
2051 | + | (inherit java-ops4j-base-lang) | |
2052 | + | (name "java-ops4j-base-io") | |
2089 | 2053 | (arguments | |
2090 | - | `(#:jar-name "java-ops4j-io.jar" | |
2054 | + | `(#:jar-name "java-ops4j-base-io.jar" | |
2091 | 2055 | #:source-dir "ops4j-base-io/src/main/java" | |
2092 | 2056 | #: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"))) | |
2101 | 2059 | (inputs | |
2102 | - | `(("lang" ,java-ops4j-monitors) | |
2103 | - | ("lang" ,java-ops4j-lang))) | |
2060 | + | `(("lang" ,java-ops4j-base-monitors) | |
2061 | + | ("lang" ,java-ops4j-base-lang))) | |
2104 | 2062 | (native-inputs | |
2105 | 2063 | `(("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."))) | |
2107 | 2067 | ||
2108 | - | (define-public java-ops4j-util | |
2068 | + | (define-public java-ops4j-base-util | |
2109 | 2069 | (package | |
2110 | - | (inherit java-ops4j-lang) | |
2111 | - | (name "java-ops4j-util") | |
2070 | + | (inherit java-ops4j-base-lang) | |
2071 | + | (name "java-ops4j-base-util") | |
2112 | 2072 | (arguments | |
2113 | - | `(#:jar-name "java-ops4j-util.jar" | |
2073 | + | `(#:jar-name "java-ops4j-base-util.jar" | |
2114 | 2074 | #:source-dir "ops4j-base-util/src/main/java" | |
2115 | 2075 | #:test-dir "ops4j-base-util/src/test")) | |
2116 | 2076 | (inputs | |
2117 | - | `(("lang" ,java-ops4j-lang))) | |
2077 | + | `(("lang" ,java-ops4j-base-lang))) | |
2118 | 2078 | (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."))) | |
2120 | 2083 | ||
2121 | - | (define-public java-ops4j-util-property | |
2084 | + | (define-public java-ops4j-base-util-property | |
2122 | 2085 | (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") | |
2125 | 2088 | (arguments | |
2126 | - | `(#:jar-name "java-ops4j-util-property.jar" | |
2089 | + | `(#:jar-name "java-ops4j-base-util-property.jar" | |
2127 | 2090 | #:source-dir "ops4j-base-util-property/src/main/java" | |
2128 | 2091 | #:tests? #f)); no tests | |
2129 | 2092 | (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."))) | |
2132 | 2098 | ||
2133 | - | (define-public java-ops4j-store | |
2099 | + | (define-public java-ops4j-base-store | |
2134 | 2100 | (package | |
2135 | - | (inherit java-ops4j-lang) | |
2136 | - | (name "java-ops4j-store") | |
2101 | + | (inherit java-ops4j-base-lang) | |
2102 | + | (name "java-ops4j-base-store") | |
2137 | 2103 | (arguments | |
2138 | - | `(#:jar-name "java-ops4j-store.jar" | |
2104 | + | `(#:jar-name "java-ops4j-base-store.jar" | |
2139 | 2105 | #:source-dir "ops4j-base-store/src/main/java" | |
2140 | 2106 | #:tests? #f)); no tests | |
2141 | 2107 | (inputs | |
2142 | - | `(("lang" ,java-ops4j-lang) | |
2108 | + | `(("lang" ,java-ops4j-base-lang) | |
2143 | 2109 | ("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}."))) | |
2145 | 2114 | ||
2146 | - | (define-public java-ops4j-spi | |
2115 | + | (define-public java-ops4j-base-spi | |
2147 | 2116 | (package | |
2148 | - | (inherit java-ops4j-lang) | |
2149 | - | (name "java-ops4j-spi") | |
2117 | + | (inherit java-ops4j-base-lang) | |
2118 | + | (name "java-ops4j-base-spi") | |
2150 | 2119 | (arguments | |
2151 | - | `(#:jar-name "java-ops4j-spi.jar" | |
2120 | + | `(#:jar-name "java-ops4j-base-spi.jar" | |
2152 | 2121 | #:source-dir "ops4j-base-spi/src/main/java" | |
2153 | 2122 | #:test-dir "ops4j-base-spi/src/test")) | |
2154 | 2123 | (native-inputs | |
2155 | 2124 | `(("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}."))) | |
2157 | 2129 | ||
2158 | 2130 | (define-public java-aqute-bndlib | |
2159 | 2131 | (package | |
… | |||
2163 | 2135 | (method url-fetch) | |
2164 | 2136 | (uri (string-append "https://github.com/bndtools/bnd/archive/" | |
2165 | 2137 | version ".REL.tar.gz")) | |
2138 | + | (file-name (string-append name "-" version ".tar.gz")) | |
2166 | 2139 | (sha256 | |
2167 | 2140 | (base32 | |
2168 | 2141 | "09vgb6axikbz66zi9falijbnzh1qnp9ysfns123dmzdb01cbza9q")))) | |
… | |||
2185 | 2158 | ("java-osgi-namespace-service" ,java-osgi-namespace-service) | |
2186 | 2159 | ("promise" ,java-osgi-util-promise) | |
2187 | 2160 | ("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.") | |
2191 | 2166 | (license license:asl2.0))) | |
2192 | 2167 | ||
2193 | 2168 | (define-public java-aqute-libg | |
… | |||
2228 | 2203 | (arguments | |
2229 | 2204 | `(#:jar-name "java-ops4j-pax-tinybundles.jar" | |
2230 | 2205 | #:source-dir "src/main/java" | |
2206 | + | #:test-exclude | |
2207 | + | ;; Abstract base classes for other tests | |
2208 | + | (list "**/BndTest.java" "**/CoreTest.java") | |
2231 | 2209 | #:phases | |
2232 | 2210 | (modify-phases %standard-phases | |
2233 | 2211 | (add-before 'check 'fix-version | |
2234 | 2212 | (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. | |
2237 | 2216 | (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) | |
2249 | 2222 | ("slf4j" ,java-slf4j-api) | |
2250 | 2223 | ("libg" ,java-aqute-libg) | |
2251 | 2224 | ("bndlib" ,java-aqute-bndlib))) | |
… | |||
2257 | 2230 | ("framework" ,java-osgi-framework))) | |
2258 | 2231 | (build-system ant-build-system) | |
2259 | 2232 | (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.") | |
2262 | 2239 | (license license:asl2.0))) | |
2263 | 2240 | ||
2264 | 2241 | (define-public java-ops4j-pax-exam-core | |
… | |||
2278 | 2255 | #:test-dir "core/pax-exam/src/test")) | |
2279 | 2256 | (inputs | |
2280 | 2257 | `(("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) | |
2285 | 2262 | ("java-osgi-core" ,java-osgi-core))) | |
2286 | 2263 | (native-inputs | |
2287 | 2264 | `(("junit" ,java-junit) | |
2288 | 2265 | ("hamcrest" ,java-hamcrest-core))) | |
2289 | 2266 | (build-system ant-build-system) | |
2290 | 2267 | (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.") | |
2293 | 2272 | (license license:asl2.0))) | |
2294 | 2273 | ||
2295 | 2274 | (define-public java-ops4j-pax-exam-core-spi | |
… | |||
2298 | 2277 | (name "java-ops4j-pax-exam-core-spi") | |
2299 | 2278 | (arguments | |
2300 | 2279 | `(#: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") | |
2303 | 2287 | #:phases | |
2304 | 2288 | (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"))) | |
2305 | 2293 | (add-before 'check 'fix-tests | |
2306 | 2294 | (lambda _ | |
2295 | + | ;; One test checks that this file is present. | |
2307 | 2296 | (mkdir-p "build/classes/META-INF/maven/org.ops4j.pax.exam/pax-exam-spi") | |
2308 | 2297 | (with-output-to-file "build/classes/META-INF/maven/org.ops4j.pax.exam/pax-exam-spi/pom.properties" | |
2309 | 2298 | (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") | |
2324 | 2307 | (("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"))))))) | |
2334 | 2311 | (inputs | |
2335 | 2312 | `(("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) | |
2341 | 2318 | ("osgi" ,java-osgi-core) | |
2342 | 2319 | ("slf4j" ,java-slf4j-api) | |
2343 | 2320 | ("tinybundles" ,java-ops4j-pax-tinybundles))) | |
… | |||
2380 | 2357 | (arguments | |
2381 | 2358 | `(#:jar-name "jackson-dataformat-yaml.jar" | |
2382 | 2359 | #:source-dir "src/main/java" | |
2360 | + | #:test-exclude (list "**/failing/**.java") | |
2383 | 2361 | #:phases | |
2384 | 2362 | (modify-phases %standard-phases | |
2385 | 2363 | (add-before 'configure 'generate-PackageVersion.java | |
… | |||
2391 | 2369 | (("@package@") "com.fasterxml.jackson.dataformat.yaml") | |
2392 | 2370 | (("@projectversion@") ,version) | |
2393 | 2371 | (("@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")))))))) | |
2401 | 2373 | (inputs | |
2402 | 2374 | `(("java-fasterxml-jackson-annotations" ,java-fasterxml-jackson-annotations) | |
2403 | 2375 | ("java-fasterxml-jackson-core" ,java-fasterxml-jackson-core) | |
… | |||
2891 | 2863 | (arguments | |
2892 | 2864 | `(#:jar-name "java-fest-assert.jar" | |
2893 | 2865 | #: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"))) | |
2908 | 2873 | (inputs | |
2909 | 2874 | `(("java-fest-util" ,java-fest-util))) | |
2910 | 2875 | (native-inputs | |
… | |||
2983 | 2948 | `(#:jar-name "java-jeromq.jar" | |
2984 | 2949 | #:source-dir "src/main/java" | |
2985 | 2950 | #: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"))) | |
3000 | 2959 | (inputs | |
3001 | 2960 | `(("java-jnacl" ,java-jnacl))) | |
3002 | 2961 | (native-inputs | |
… | |||
3195 | 3154 | #:source-dir "log4j-1.2-api/src/main/java" | |
3196 | 3155 | #:test-dir "log4j-1.2-api/src/test" | |
3197 | 3156 | #: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")))))))) | |
3221 | 3175 | (inputs | |
3222 | 3176 | `(("log4j-api" ,java-log4j-api) | |
3223 | 3177 | ("log4j-core" ,java-log4j-core) | |
… | |||
4249 | 4203 | (arguments | |
4250 | 4204 | `(#:jar-name (string-append ,name "-" ,version ".jar") | |
4251 | 4205 | #: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"))) | |
4260 | 4207 | (inputs | |
4261 | 4208 | `(("java-guava" ,java-guava))) | |
4262 | 4209 | (native-inputs | |
… | |||
4283 | 4230 | (arguments | |
4284 | 4231 | `(#:jar-name "java-joda-time.jar" | |
4285 | 4232 | #:source-dir "src/main/java" | |
4233 | + | #:test-include (list "**/Test*.java") | |
4234 | + | #:test-exclude (list "**/Test*Chronology.java" "**/Test*Field.java") | |
4286 | 4235 | #:phases | |
4287 | 4236 | (modify-phases %standard-phases | |
4288 | 4237 | (add-after 'build 'build-resources | |
… | |||
4316 | 4265 | (for-each (lambda (file) | |
4317 | 4266 | (copy-file file (string-append "build/test-classes/" | |
4318 | 4267 | (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/" ".*"))))))) | |
4327 | 4269 | (inputs | |
4328 | 4270 | `(("java-joda-convert" ,java-joda-convert))) | |
4329 | 4271 | (native-inputs |