aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2016-09-09 16:51:09 +0200
committerRicardo Wurmus <rekado@elephly.net>2017-05-10 17:59:24 +0200
commit6af63e657c43cb57d2ee85a61bdb55962e82e907 (patch)
treec3011d4d46ca018a814bde2350c29606f4557f96
parent56ebb4e90dc6827e295a556caa8661cf0fbad9c7 (diff)
downloadgnu-guix-6af63e657c43cb57d2ee85a61bdb55962e82e907.tar
gnu-guix-6af63e657c43cb57d2ee85a61bdb55962e82e907.tar.gz
gnu: Add java-commons-io.
* gnu/packages/java.scm (java-commons-io): New variable. Co-authored-by: Ricardo Wurmus <rekado@elephly.net>
-rw-r--r--gnu/packages/java.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index c6fa1348c9..035bd1ab58 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1623,3 +1623,37 @@ are many features, including:
such as union, intersection, and closure.
@end itemize\n")
(license license:asl2.0)))
+
+(define-public java-commons-io
+ (package
+ (name "java-commons-io")
+ (version "2.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/commons/io/source/"
+ "commons-io-" version "-src.tar.gz"))
+ (sha256
+ (base32
+ "0q5y41jrcjvx9hzs47x5kdhnasdy6rm4bzqd2jxl02w717m7a7v3"))))
+ (build-system ant-build-system)
+ (outputs '("out" "doc"))
+ (arguments
+ `(#:test-target "test"
+ #:make-flags
+ (list (string-append "-Djunit.jar="
+ (assoc-ref %build-inputs "java-junit")
+ "/share/java/junit.jar"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'build-javadoc ant-build-javadoc)
+ (replace 'install (install-jars "target"))
+ (add-after 'install 'install-doc (install-javadoc "target/apidocs")))))
+ (native-inputs
+ `(("java-junit" ,java-junit)
+ ("java-hamcrest-core" ,java-hamcrest-core)))
+ (home-page "http://commons.apache.org/io/")
+ (synopsis "Common useful IO related classes")
+ (description "Commons-IO contains utility classes, stream implementations,
+file filters and endian classes.")
+ (license license:asl2.0)))