some java improvements
more/packages/java.scm
58 | 58 | (modify-phases %standard-phases | |
59 | 59 | (add-after 'unpack 'properties | |
60 | 60 | (lambda _ | |
61 | + | (for-each delete-file (find-files "." ".*.jar$")) | |
61 | 62 | (mkdir "downloads") | |
62 | 63 | (substitute* "build.xml" | |
63 | 64 | (("download-compile,") "") | |
… | |||
2039 | 2040 | ("java-bsh" ,java-bsh) | |
2040 | 2041 | ("java-jcommander" ,java-jcommander) | |
2041 | 2042 | ("java-guice" ,java-guice) | |
2042 | - | ("snakeyaml" ,java-snakeyaml-notests))) | |
2043 | + | ("snakeyaml" ,java-snakeyaml))) | |
2043 | 2044 | (native-inputs | |
2044 | 2045 | `(("guava" ,java-guava) | |
2045 | 2046 | ("java-javax-inject" ,java-javax-inject) | |
… | |||
2445 | 2446 | #:source-dir "log4j-1.2-api/src/main/java" | |
2446 | 2447 | #:test-dir "log4j-1.2-api/src/test" | |
2447 | 2448 | #:jdk ,icedtea-8 | |
2448 | - | ;#:tests? #f; requires maven | |
2449 | - | #:phases | |
2450 | - | (modify-phases %standard-phases | |
2451 | - | (add-before 'check 'copy-test-classes | |
2452 | - | (lambda _ | |
2453 | - | (let ((from "log4j-core/src/test/java/org/apache/logging/log4j/") | |
2454 | - | (to "log4j-1.2-api/src/test/java/org/apache/logging/log4j/")) | |
2455 | - | (for-each (lambda (file) | |
2456 | - | (mkdir-p (dirname (string-append to file))) | |
2457 | - | (copy-file (string-append from file) | |
2458 | - | (string-append to file))) | |
2459 | - | '("test/appender/ListAppender.java" | |
2460 | - | "junit/LoggerContextRule.java" | |
2461 | - | "osgi/equinox/AbstractEquinoxLoadBundleTest.java" | |
2462 | - | "osgi/OsgiRule.java" | |
2463 | - | "osgi/BundleTestInfo.java" | |
2464 | - | "osgi/AbstractLoadBundleTest.java" | |
2465 | - | "osgi/felix/AbstractFelixLoadBundleTest.java")))))))) | |
2449 | + | #:tests? #f)); requires maven-model (and other maven subprojects), | |
2450 | + | ; which is a cyclic dependency | |
2466 | 2451 | (inputs | |
2467 | 2452 | `(("log4j-api" ,java-log4j-api) | |
2468 | 2453 | ("log4j-core" ,java-log4j-core) | |
… | |||
3534 | 3519 | (arguments | |
3535 | 3520 | `(#:jar-name (string-append ,name "-" ,version ".jar") | |
3536 | 3521 | #:source-dir "src/main/java" | |
3537 | - | #:test-eclude (list "**/test*/**.java"))) | |
3522 | + | #:test-exclude (list "**/test*/**.java"))) | |
3538 | 3523 | (inputs | |
3539 | 3524 | `(("java-guava" ,java-guava))) | |
3540 | 3525 | (native-inputs |