GNU bug report logs -
#28841
[PATCH] New java packages
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28841 in the body.
You can then email your comments to 28841 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:02:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Julien Lepiller <julien <at> lepiller.eu>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 14 Oct 2017 22:02:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
this patch series adds 23 new java packages that are required before we
can build maven.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:26:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-hdrhistogram): New variable.
---
gnu/packages/java.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 95fba20e8..a36db179a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6020,3 +6020,41 @@ provides low-level abstractions (@code{JsonParser}, @code{JsonGenerator},
@code{JsonFactory}) as well as small number of higher level overrides needed to
make data-binding work.")
(license license:asl2.0))); found on wiki.fasterxml.com/JacksonLicensing
+
+(define-public java-hdrhistogram
+ (package
+ (name "java-hdrhistogram")
+ (version "2.1.9")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/HdrHistogram/HdrHistogram/"
+ "archive/HdrHistogram-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1sicbmc3sr42nw93qbkb26q9rn33ag33k6k77phjc3j5h5gjffqv"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-hdrhistogram.jar"
+ #:source-dir "src/main/java"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'set-version
+ (lambda _
+ (let* ((version-java "src/main/java/org/HdrHistogram/Version.java")
+ (template (string-append version-java ".template")))
+ (copy-file template version-java)
+ (substitute* version-java
+ (("\\$VERSION\\$") ,version)
+ (("\\$BUILD_TIME\\$") "0"))))))))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)))
+ (home-page "https://hdrhistogram.github.io/HdrHistogram")
+ (synopsis "High Dynamic Range Histogram")
+ (description "Histogram that supports recording and analyzing sampled data
+value counts across a configurable integer value range with configurable value
+precision within the range. Value precision is expressed as the number of
+significant digits in the value recording, and provides control over value
+quantization behavior across the value range and the subsequent value resolution
+at any given level.")
+ (license license:bsd-2)))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:26:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-tomcat): New variable.
---
gnu/packages/java.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index a36db179a..4561b92d8 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6058,3 +6058,46 @@ significant digits in the value recording, and provides control over value
quantization behavior across the value range and the subsequent value resolution
at any given level.")
(license license:bsd-2)))
+
+(define-public java-tomcat
+ (package
+ (name "java-tomcat")
+ (version "8.5.23")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/tomcat/tomcat-8/v"
+ version "/src/apache-tomcat-" version "-src.tar.gz"))
+ (sha256
+ (base32
+ "1m6b1dikib46kbgz9gf0p6svi00nsw62b9kgjzn6sda151skbbza"))))
+ (build-system ant-build-system)
+ (inputs
+ `(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
+ (native-inputs
+ `(("java-junit" ,java-junit)))
+ (arguments
+ `(#:build-target "package"
+ #:tests? #f; requires downloading some files.
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'properties
+ (lambda _
+ (mkdir "downloads")
+ (substitute* "build.xml"
+ (("download-compile,") "")
+ (("depends=\"validate\"") "depends=\"build-prepare\"")
+ ((",download-validate") ""))
+ (with-output-to-file "build.properties"
+ (lambda _
+ (display
+ (string-append "base.path=" (getcwd) "/downloads\n"))))))
+ (replace 'install
+ (install-jars "output/build/lib")))))
+ (home-page "https://tomcat.apache.org")
+ (synopsis "Java Servlet, JavaServer Pages, Java Expression Language and Java
+WebSocket")
+ (description "Apache Tomcat is an open source implementation of the Java
+Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
+technologies. The Java Servlet, JavaServer Pages, Java Expression Language and
+Java WebSocket specifications are developed under the Java Community Process.")
+ (license license:asl2.0)))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:26:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-test-helper): New variable.
---
gnu/packages/java.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 4561b92d8..d8920a097 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6101,3 +6101,51 @@ Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
technologies. The Java Servlet, JavaServer Pages, Java Expression Language and
Java WebSocket specifications are developed under the Java Community Process.")
(license license:asl2.0)))
+
+(define-public java-eclipse-jetty-test-helper
+ (package
+ (name "java-eclipse-jetty-test-helper")
+ (version "4.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/eclipse/jetty.toolchain/"
+ "archive/jetty-test-helper-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1jd6r9wc26fa11si4rn2gvy8ml8q4zw1nr6v04mjp8wvwpgvzwx5"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "eclipse-jetty-test-helper.jar"
+ #:source-dir "src/main/java"
+ #:test-dir "src/test"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-test-helper")))
+ (add-before 'build 'fix-build-path
+ (lambda _
+ ;; FIXME:
+ ;; This file assumes that the build directory is named "target"
+ ;; but it is not the case with our ant-build-system. Once we have
+ ;; maven though, we will have to rebuild this package because this
+ ;; assumption is correct with maven-build-system.
+ (substitute*
+ "src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java"
+ (("\"target\"") "\"build\"")
+ (("\"tests\"") "\"test-classes\""))))
+ (add-before 'check 'fix-paths
+ (lambda _
+ (with-directory-excursion "src/test/java/org/eclipse/jetty/toolchain/test"
+ (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java"
+ "MavenTestingUtilsTest.java")
+ (("target/tests") "build/test-classes")
+ (("\"target") "\"build"))))))))
+ (inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-all)))
+ (home-page "https://www.eclipse.org/jetty/")
+ (synopsis "Helper classes for jetty tests")
+ (description "This packages contains helper classes for testing jetty.")
+ (license (list license:epl1.0 license:asl2.0))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:26:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-perf-helper): New variable.
---
gnu/packages/java.scm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index d8920a097..a2c76aa14 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6149,3 +6149,20 @@ Java WebSocket specifications are developed under the Java Community Process.")
(synopsis "Helper classes for jetty tests")
(description "This packages contains helper classes for testing jetty.")
(license (list license:epl1.0 license:asl2.0))))
+
+(define-public java-eclipse-jetty-perf-helper
+ (package
+ (inherit java-eclipse-jetty-test-helper)
+ (name "java-eclipse-jetty-perf-helper")
+ (arguments
+ `(#:jar-name "eclipse-jetty-perf-helper.jar"
+ #:source-dir "src/main/java"
+ #:tests? #f; no tests
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-perf-helper"))))))
+ (inputs
+ `(("hdrhistogram" ,java-hdrhistogram)))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:26:04 GMT)
Full text and
rfc822 format available.
Message #20 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-util): New variable.
---
gnu/packages/java.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index a2c76aa14..30312a3d9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6166,3 +6166,47 @@ Java WebSocket specifications are developed under the Java Community Process.")
(chdir "jetty-perf-helper"))))))
(inputs
`(("hdrhistogram" ,java-hdrhistogram)))))
+
+(define-public java-eclipse-jetty-util
+ (package
+ (name "java-eclipse-jetty-util")
+ (version "9.4.6")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/eclipse/jetty.project/"
+ "archive/jetty-" version ".v20170531.tar.gz"))
+ (sha256
+ (base32
+ "0x7kbdvkmgr6kbsmbwiiyv3bb0d6wk25frgvld9cf8540136z9p1"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "eclipse-jetty-util.jar"
+ #:source-dir "src/main/java"
+ #:test-exclude
+ (list "**/Abstract*.java"
+ ;; requires network
+ "**/InetAddressSetTest.java"
+ ;; Assumes we are using maven
+ "**/TypeUtilTest.java"
+ ;; Error on the style of log
+ "**/StdErrLogTest.java")
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-util"))))))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("servlet" ,java-tomcat)))
+ (native-inputs
+ `(("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-all)
+ ("perf-helper" ,java-eclipse-jetty-perf-helper)
+ ("test-helper" ,java-eclipse-jetty-test-helper)))
+ (home-page "https://www.eclipse.org/jetty/")
+ (synopsis "Utility classes for Jetty")
+ (description "The Jetty Web Server provides an HTTP server and Servlet
+container capable of serving static and dynamic content either from a standalone
+or embedded instantiation. This package provides utility classes.")
+ (license (list license:epl1.0 license:asl2.0))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-util-9.2): New variable.
---
gnu/packages/java.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 30312a3d9..33037a53d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6210,3 +6210,44 @@ Java WebSocket specifications are developed under the Java Community Process.")
container capable of serving static and dynamic content either from a standalone
or embedded instantiation. This package provides utility classes.")
(license (list license:epl1.0 license:asl2.0))))
+
+;; This version is required by maven-wagon
+(define-public java-eclipse-jetty-util-9.2
+ (package
+ (inherit java-eclipse-jetty-util)
+ (version "9.2.22")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/eclipse/jetty.project/"
+ "archive/jetty-" version ".v20170606.tar.gz"))
+ (sha256
+ (base32
+ "1i51qlsd7h06d35kx5rqpzbfadbcszycx1iwr6vz7qc9gf9f29la"))))
+ (arguments
+ `(#:jar-name "eclipse-jetty-util.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:test-exclude
+ (list "**/Abstract*.java"
+ ;; requires network
+ "**/InetAddressSetTest.java"
+ ;; Assumes we are using maven
+ "**/TypeUtilTest.java"
+ ;; We don't have an implementation for slf4j
+ "**/LogTest.java"
+ ;; Error on the style of log
+ "**/StdErrLogTest.java")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-util")))
+ (add-before 'check 'fix-sources
+ (lambda _
+ (let ((src "src/test/java/org/eclipse/jetty/util/resource"))
+ (substitute* (string-append src "/AbstractFSResourceTest.java")
+ (("testdir.getDir\\(\\)") "testdir.getPath().toFile()")
+ (("testdir.getFile\\(\"foo\"\\)")
+ "testdir.getPathFile(\"foo\").toFile()")
+ (("testdir.getFile\\(name\\)")
+ "testdir.getPathFile(name).toFile()"))))))))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-io): New variable.
---
gnu/packages/java.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 33037a53d..8580eec53 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6251,3 +6251,28 @@ or embedded instantiation. This package provides utility classes.")
"testdir.getPathFile(\"foo\").toFile()")
(("testdir.getFile\\(name\\)")
"testdir.getPathFile(name).toFile()"))))))))))
+
+(define-public java-eclipse-jetty-io
+ (package
+ (inherit java-eclipse-jetty-util)
+ (name "java-eclipse-jetty-io")
+ (arguments
+ `(#:jar-name "eclipse-jetty-io.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:test-exclude (list "**/Abstract*.java"
+ ;; Abstract class
+ "**/EndPointTest.java")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-io"))))))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("servlet" ,java-tomcat)
+ ("util" ,java-eclipse-jetty-util)))
+ (synopsis "Jetty :: IO Utility")
+ (description "The Jetty Web Server provides an HTTP server and Servlet
+container capable of serving static and dynamic content either from a standalone
+or embedded instantiation. This package provides IO-related utility classes.")))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:03 GMT)
Full text and
rfc822 format available.
Message #29 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-io-9.2): New variable.
---
gnu/packages/java.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8580eec53..2e93f90b7 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6276,3 +6276,18 @@ or embedded instantiation. This package provides utility classes.")
(description "The Jetty Web Server provides an HTTP server and Servlet
container capable of serving static and dynamic content either from a standalone
or embedded instantiation. This package provides IO-related utility classes.")))
+
+(define-public java-eclipse-jetty-io-9.2
+ (package
+ (inherit java-eclipse-jetty-io)
+ (version (package-version java-eclipse-jetty-util-9.2))
+ (source (package-source java-eclipse-jetty-util-9.2))
+ (inputs
+ `(("util" ,java-eclipse-jetty-util-9.2)
+ ,@(package-inputs java-eclipse-jetty-util-9.2)))
+ (native-inputs
+ `(("mockito" ,java-mockito-1)
+ ("cglib" ,java-cglib)
+ ("objenesis" ,java-objenesis)
+ ("asm" ,java-asm)
+ ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:03 GMT)
Full text and
rfc822 format available.
Message #32 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-http): New variable.
---
gnu/packages/java.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 2e93f90b7..a35dcce96 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6291,3 +6291,30 @@ or embedded instantiation. This package provides IO-related utility classes."))
("objenesis" ,java-objenesis)
("asm" ,java-asm)
,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
+
+(define-public java-eclipse-jetty-http
+ (package
+ (inherit java-eclipse-jetty-util)
+ (name "java-eclipse-jetty-http")
+ (arguments
+ `(#:jar-name "eclipse-jetty-http.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-http")))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (mkdir-p "build/classes")
+ (copy-recursively "src/main/resources/" "build/classes/"))))))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("servlet" ,java-tomcat)
+ ("io" ,java-eclipse-jetty-io)
+ ("util" ,java-eclipse-jetty-util)))
+ (synopsis "Jetty :: Http Utility")
+ (description "The Jetty Web Server provides an HTTP server and Servlet
+container capable of serving static and dynamic content either from a standalone
+or embedded instantiation. This package provides HTTP-related utility classes.")))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:04 GMT)
Full text and
rfc822 format available.
Message #35 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-http-9.2): New variable.
---
gnu/packages/java.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index a35dcce96..7adb0e8b8 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6318,3 +6318,13 @@ or embedded instantiation. This package provides IO-related utility classes."))
(description "The Jetty Web Server provides an HTTP server and Servlet
container capable of serving static and dynamic content either from a standalone
or embedded instantiation. This package provides HTTP-related utility classes.")))
+
+(define-public java-eclipse-jetty-http-9.2
+ (package
+ (inherit java-eclipse-jetty-http)
+ (version (package-version java-eclipse-jetty-util-9.2))
+ (source (package-source java-eclipse-jetty-util-9.2))
+ (inputs
+ `(("util" ,java-eclipse-jetty-util-9.2)
+ ("io" ,java-eclipse-jetty-io-9.2)
+ ,@(package-inputs java-eclipse-jetty-util-9.2)))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:04 GMT)
Full text and
rfc822 format available.
Message #38 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-jmx): New variable.
---
gnu/packages/java.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 7adb0e8b8..7bc8a0d45 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6328,3 +6328,26 @@ or embedded instantiation. This package provides HTTP-related utility classes."
`(("util" ,java-eclipse-jetty-util-9.2)
("io" ,java-eclipse-jetty-io-9.2)
,@(package-inputs java-eclipse-jetty-util-9.2)))))
+
+(define-public java-eclipse-jetty-jmx
+ (package
+ (inherit java-eclipse-jetty-util)
+ (name "java-eclipse-jetty-jmx")
+ (arguments
+ `(#:jar-name "eclipse-jetty-jmx.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:tests? #f; FIXME: requires com.openpojo.validation
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-jmx"))))))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("servlet" ,java-tomcat)
+ ("util" ,java-eclipse-jetty-util)))
+ (synopsis "Jetty :: JMX Management")
+ (description "The Jetty Web Server provides an HTTP server and Servlet
+container capable of serving static and dynamic content either from a standalone
+or embedded instantiation. This package provides the JMX management.")))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:04 GMT)
Full text and
rfc822 format available.
Message #41 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-jmx-9.2): New variable.
---
gnu/packages/java.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 7bc8a0d45..9124387fd 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6351,3 +6351,12 @@ or embedded instantiation. This package provides HTTP-related utility classes."
(description "The Jetty Web Server provides an HTTP server and Servlet
container capable of serving static and dynamic content either from a standalone
or embedded instantiation. This package provides the JMX management.")))
+
+(define-public java-eclipse-jetty-jmx-9.2
+ (package
+ (inherit java-eclipse-jetty-jmx)
+ (version (package-version java-eclipse-jetty-util-9.2))
+ (source (package-source java-eclipse-jetty-util-9.2))
+ (inputs
+ `(("util" ,java-eclipse-jetty-util-9.2)
+ ,@(package-inputs java-eclipse-jetty-util-9.2)))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:05 GMT)
Full text and
rfc822 format available.
Message #44 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-server): New variable.
---
gnu/packages/java.scm | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 9124387fd..cd1aaf12e 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6329,6 +6329,27 @@ or embedded instantiation. This package provides HTTP-related utility classes."
("io" ,java-eclipse-jetty-io-9.2)
,@(package-inputs java-eclipse-jetty-util-9.2)))))
+(define java-eclipse-jetty-http-test-classes
+ (package
+ (inherit java-eclipse-jetty-util)
+ (name "java-eclipse-jetty-http-test-classes")
+ (arguments
+ `(#:jar-name "eclipse-jetty-http.jar"
+ #:source-dir "src/test"
+ #:tests? #f
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-http"))))))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("servlet" ,java-tomcat)
+ ("http" ,java-eclipse-jetty-http)
+ ("io" ,java-eclipse-jetty-io)
+ ("util" ,java-eclipse-jetty-util)))))
+
(define-public java-eclipse-jetty-jmx
(package
(inherit java-eclipse-jetty-util)
@@ -6360,3 +6381,50 @@ or embedded instantiation. This package provides the JMX management.")))
(inputs
`(("util" ,java-eclipse-jetty-util-9.2)
,@(package-inputs java-eclipse-jetty-util-9.2)))))
+
+(define-public java-eclipse-jetty-server
+ (package
+ (inherit java-eclipse-jetty-util)
+ (name "java-eclipse-jetty-server")
+ (arguments
+ `(#:jar-name "eclipse-jetty-server.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:tests? #f; requires a mockito version we don't have
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-server")))
+ (add-before 'build 'fix-source
+ (lambda _
+ ;; Explicit casts to prevent build failures
+ (substitute* "src/main/java/org/eclipse/jetty/server/Request.java"
+ (("append\\(LazyList")
+ "append((CharSequence)LazyList"))
+ (substitute*
+ "src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java"
+ (((string-append
+ "Class<\\? extends EventListener> clazz = _classLoader==null"
+ "\\?Loader.loadClass\\(ContextHandler.class,className\\):"
+ "_classLoader.loadClass\\(className\\);"))
+ (string-append "Class<? extends EventListener> clazz = "
+ "(Class<? extends EventListener>) "
+ "(_classLoader==null?Loader.loadClass("
+ "ContextHandler.class,className):"
+ "_classLoader.loadClass(className));"))))))))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("servlet" ,java-tomcat)
+ ("http" ,java-eclipse-jetty-http)
+ ("io" ,java-eclipse-jetty-io)
+ ("jmx" ,java-eclipse-jetty-jmx)
+ ("util" ,java-eclipse-jetty-util)))
+ (native-inputs
+ `(("test-classes" ,java-eclipse-jetty-http-test-classes)
+ ,@(package-native-inputs java-eclipse-jetty-util)))
+ (synopsis "Core jetty server artifact")
+ (description "The Jetty Web Server provides an HTTP server and Servlet
+container capable of serving static and dynamic content either from a standalone
+or embedded instantiation. This package provides the core jetty server
+artifact.")))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:05 GMT)
Full text and
rfc822 format available.
Message #47 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-server-9.2): New variable.
---
gnu/packages/java.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index cd1aaf12e..c39c306cb 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6350,6 +6350,15 @@ or embedded instantiation. This package provides HTTP-related utility classes."
("io" ,java-eclipse-jetty-io)
("util" ,java-eclipse-jetty-util)))))
+(define java-eclipse-jetty-http-test-classes-9.2
+ (package
+ (inherit java-eclipse-jetty-http-test-classes)
+ (version (package-version java-eclipse-jetty-util-9.2))
+ (source (package-source java-eclipse-jetty-util-9.2))
+ (inputs
+ `(("http" ,java-eclipse-jetty-http-9.2)
+ ,@(package-inputs java-eclipse-jetty-http-9.2)))))
+
(define-public java-eclipse-jetty-jmx
(package
(inherit java-eclipse-jetty-util)
@@ -6428,3 +6437,18 @@ or embedded instantiation. This package provides the JMX management.")))
container capable of serving static and dynamic content either from a standalone
or embedded instantiation. This package provides the core jetty server
artifact.")))
+
+(define-public java-eclipse-jetty-server-9.2
+ (package
+ (inherit java-eclipse-jetty-server)
+ (version (package-version java-eclipse-jetty-util-9.2))
+ (source (package-source java-eclipse-jetty-util-9.2))
+ (inputs
+ `(("util" ,java-eclipse-jetty-util-9.2)
+ ("jmx" ,java-eclipse-jetty-jmx-9.2)
+ ("io" ,java-eclipse-jetty-io-9.2)
+ ("http" ,java-eclipse-jetty-http-9.2)
+ ,@(package-inputs java-eclipse-jetty-util-9.2)))
+ (native-inputs
+ `(("test-classes" ,java-eclipse-jetty-http-test-classes-9.2)
+ ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:06 GMT)
Full text and
rfc822 format available.
Message #50 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-security): New variable.
---
gnu/packages/java.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index c39c306cb..2aa0b668a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6452,3 +6452,31 @@ artifact.")))
(native-inputs
`(("test-classes" ,java-eclipse-jetty-http-test-classes-9.2)
,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
+
+(define-public java-eclipse-jetty-security
+ (package
+ (inherit java-eclipse-jetty-util)
+ (name "java-eclipse-jetty-security")
+ (arguments
+ `(#:jar-name "eclipse-jetty-security.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-security"))))))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("servlet" ,java-tomcat)
+ ("http" ,java-eclipse-jetty-http)
+ ("server" ,java-eclipse-jetty-server)
+ ("util" ,java-eclipse-jetty-util)))
+ (native-inputs
+ `(("io" ,java-eclipse-jetty-io)
+ ,@(package-native-inputs java-eclipse-jetty-util)))
+ (synopsis "Jetty security infrastructure")
+ (description "The Jetty Web Server provides an HTTP server and Servlet
+container capable of serving static and dynamic content either from a standalone
+or embedded instantiation. This package provides the core jetty security
+infrastructure")))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:06 GMT)
Full text and
rfc822 format available.
Message #53 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-security-9.2): New variable.
---
gnu/packages/java.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 2aa0b668a..910093ec8 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6480,3 +6480,17 @@ artifact.")))
container capable of serving static and dynamic content either from a standalone
or embedded instantiation. This package provides the core jetty security
infrastructure")))
+
+(define-public java-eclipse-jetty-security-9.2
+ (package
+ (inherit java-eclipse-jetty-security)
+ (version (package-version java-eclipse-jetty-util-9.2))
+ (source (package-source java-eclipse-jetty-util-9.2))
+ (inputs
+ `(("util" ,java-eclipse-jetty-util-9.2)
+ ("http" ,java-eclipse-jetty-http-9.2)
+ ("server" ,java-eclipse-jetty-server-9.2)
+ ,@(package-inputs java-eclipse-jetty-util-9.2)))
+ (native-inputs
+ `(("io" ,java-eclipse-jetty-io-9.2)
+ ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:07 GMT)
Full text and
rfc822 format available.
Message #56 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-servlet): New variable.
---
gnu/packages/java.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 910093ec8..391186423 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6494,3 +6494,32 @@ infrastructure")))
(native-inputs
`(("io" ,java-eclipse-jetty-io-9.2)
,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
+
+(define-public java-eclipse-jetty-servlet
+ (package
+ (inherit java-eclipse-jetty-util)
+ (name "java-eclipse-jetty-servlet")
+ (arguments
+ `(#:jar-name "eclipse-jetty-servlet.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-servlet"))))))
+ (inputs
+ `(("slf4j" ,java-slf4j-api)
+ ("servlet" ,java-tomcat)
+ ("http" ,java-eclipse-jetty-http)
+ ("http-test" ,java-eclipse-jetty-http-test-classes)
+ ("io" ,java-eclipse-jetty-io)
+ ("jmx" ,java-eclipse-jetty-jmx)
+ ("security" ,java-eclipse-jetty-security)
+ ("server" ,java-eclipse-jetty-server)
+ ("util" ,java-eclipse-jetty-util)))
+ (synopsis "Jetty Servlet Container")
+ (description "The Jetty Web Server provides an HTTP server and Servlet
+container capable of serving static and dynamic content either from a standalone
+or embedded instantiation. This package provides the core jetty servlet
+container.")))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:07 GMT)
Full text and
rfc822 format available.
Message #59 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-eclipse-jetty-servlet-9.2): New variable.
---
gnu/packages/java.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 391186423..a3e66de04 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6523,3 +6523,28 @@ infrastructure")))
container capable of serving static and dynamic content either from a standalone
or embedded instantiation. This package provides the core jetty servlet
container.")))
+
+(define-public java-eclipse-jetty-servlet-9.2
+ (package
+ (inherit java-eclipse-jetty-servlet)
+ (version (package-version java-eclipse-jetty-util-9.2))
+ (source (package-source java-eclipse-jetty-util-9.2))
+ (arguments
+ `(#:jar-name "eclipse-jetty-servlet.jar"
+ #:source-dir "src/main/java"
+ #:jdk ,icedtea-8
+ #:tests? #f; doesn't work
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "jetty-servlet"))))))
+ (inputs
+ `(("util" ,java-eclipse-jetty-util-9.2)
+ ("jmx" ,java-eclipse-jetty-jmx-9.2)
+ ("io" ,java-eclipse-jetty-io-9.2)
+ ("http" ,java-eclipse-jetty-http-9.2)
+ ("security" ,java-eclipse-jetty-security-9.2)
+ ("http-test" ,java-eclipse-jetty-http-test-classes-9.2)
+ ("server" ,java-eclipse-jetty-server-9.2)
+ ,@(package-inputs java-eclipse-jetty-util-9.2)))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:07 GMT)
Full text and
rfc822 format available.
Message #62 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-javax-inject): New variable.
---
gnu/packages/java.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 6c8b4bebb..dc5e8e695 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6578,3 +6578,34 @@ container.")))
software engineering people who are interested in Aspect-Oriented Programming
(AOP) and Java.")
(license license:public-domain)))
+
+(define-public java-javax-inject
+ (package
+ (name "java-javax-inject")
+ (version "tck-1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/javax-inject/javax-inject/"
+ "archive/javax.inject-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1ydrlvh2r7vr1g7lhjwy3w2dggpj9h6pix1lakkkgdywb365n6g0"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-javax-inject.jar"
+ #:jdk ,icedtea-8
+ #:tests? #f)); no tests
+ (home-page "http://github.com/javax-inject/javax-inject")
+ (synopsis "JSR-330: Dependency Injection for Java")
+ (description "This package specifies a means for obtaining objects in such
+a way as to maximize reusability, testability and maintainability compared to
+traditional approaches such as constructors, factories, and service locators
+(e.g., JNDI). This process, known as dependency injection, is beneficial to
+most nontrivial applications.
+
+Many types depend on other types. For example, a @var{Stopwatch} might depend
+on a @var{TimeSource}. The types on which a type depends are known as its
+dependencies. The process of finding an instance of a dependency to use at run
+time is known as resolving the dependency. If no such instance can be found,
+the dependency is said to be unsatisfied, and the application is broken.")
+ (license license:asl2.0)))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:08 GMT)
Full text and
rfc822 format available.
Message #65 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-guice): New variable.
---
gnu/packages/java.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index dc5e8e695..9bc20f505 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6609,3 +6609,33 @@ dependencies. The process of finding an instance of a dependency to use at run
time is known as resolving the dependency. If no such instance can be found,
the dependency is said to be unsatisfied, and the application is broken.")
(license license:asl2.0)))
+
+(define-public java-guice
+ (package
+ (name "java-guice")
+ (version "4.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/google/guice/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0dwmqjzlavb144ywqqglj3h68hqszkff8ai0a42hyb5il0qh4rbp"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-guice.jar"
+ #:jdk ,icedtea-8
+ #:tests? #f; FIXME: tests are not in a java sub directory
+ #:source-dir "core/src"))
+ (inputs
+ `(("guava" ,java-guava)
+ ("java-cglib" ,java-cglib)
+ ("java-aopalliance" ,java-aopalliance)
+ ("java-javax-inject" ,java-javax-inject)
+ ("java-asm" ,java-asm)))
+ (home-page "https://github.com/google/guice")
+ (synopsis "Lightweight dependency injection framework")
+ (description "Guice is a lightweight dependency injection framework fo
+Java 6 and above.")
+ (license license:asl2.0)))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:08 GMT)
Full text and
rfc822 format available.
Message #68 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-assertj): New variable.
---
gnu/packages/java.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 48b0a5eb9..8c396cc2a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6653,3 +6653,34 @@ Java 6 and above.")
`(("guice" ,java-guice)
("servlet" ,java-tomcat)
,@(package-inputs java-guice)))))
+
+(define-public java-assertj
+ (package
+ (name "java-assertj")
+ (version "3.8.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/joel-costigliola/"
+ "assertj-core/archive/"
+ "assertj-core-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1kf124fxskf548rklkg86294w2x6ajqrff94rrhyqns31danqkfz"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-assertj.jar"
+ #:jdk ,icedtea-8
+ #:source-dir "src/main/java"
+ #:tests? #f)); depends on tng-junit which depends on assertj
+ (inputs
+ `(("cglib" ,java-cglib)
+ ("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)))
+ (native-inputs
+ `(("mockito" ,java-mockito-1)))
+ (home-page "https://joel-costigliola.github.io/assertj/index.html")
+ (synopsis "Fluent assertions for java")
+ (description "AssertJ core is a Java library that provides a fluent
+interface for writing assertions. Its main goal is to improve test code
+readability and make maintenance of tests easier.")
+ (license license:asl2.0)))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:27:11 GMT)
Full text and
rfc822 format available.
Message #71 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-jboss-javassist): New variable.
---
gnu/packages/java.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8c396cc2a..8222010e9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6684,3 +6684,37 @@ Java 6 and above.")
interface for writing assertions. Its main goal is to improve test code
readability and make maintenance of tests easier.")
(license license:asl2.0)))
+
+(define-public java-jboss-javassist
+ (package
+ (name "java-jboss-javassist")
+ (version "3.21.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/jboss-javassist/javassist/"
+ "archive/rel_"
+ (string-map (lambda (x) (if (eq? x #\.) #\_ x)) version)
+ "_ga.tar.gz"))
+ (sha256
+ (base32
+ "10lpcr3sbf7y6fq6fc2h2ik7rqrivwcy4747bg0kxhwszil3cfmf"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-jboss-javassist.jar"
+ #:jdk ,icedtea-8
+ #:source-dir "src/main"
+ #:tests? #f; FIXME: requires junit-awtui and junit-swingui from junit3
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'remove-binary
+ (lambda _
+ (delete-file "javassist.jar"))))))
+ (native-inputs
+ `(("junit" ,java-junit)))
+ (home-page "https://github.com/jboss-javassist/javassist")
+ (synopsis "Java bytecode engineering toolkit")
+ (description "Javassist (JAVA programming ASSISTant) makes Java bytecode
+manipulation simple. It is a class library for editing bytecodes in Java; it
+enables Java programs to define a new class at runtime and to modify a class
+file when the JVM loads it.")
+ (license (list license:gpl2 license:cddl1.0)))); either gpl2 only or cddl.
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:30:01 GMT)
Full text and
rfc822 format available.
Message #74 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-aopalliance): New variable.
---
gnu/packages/java.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index a3e66de04..6c8b4bebb 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6548,3 +6548,33 @@ container.")))
("http-test" ,java-eclipse-jetty-http-test-classes-9.2)
("server" ,java-eclipse-jetty-server-9.2)
,@(package-inputs java-eclipse-jetty-util-9.2)))))
+
+(define-public java-aopalliance
+ (package
+ (name "java-aopalliance")
+ (version "1.0")
+ (source (origin
+ (method git-fetch)
+ ;; Note: this git repository is not official, but contains the
+ ;; source code that is in the CVS repository. Downloading the
+ ;; tarball from sourceforge is undeterministic, and the cvs download
+ ;; fails.
+ (uri (git-reference
+ (url "https://github.com/hoverruan/aopalliance")
+ (commit "0d7757ae204e5876f69431421fe9bc2a4f01e8a0")))
+ (file-name (string-append name "-" version))
+ (sha256
+ (base32
+ "0rsg2b0v3hxlq2yk1i3m2gw3xwq689j3cwx9wbxvqfpdcjbca0qr"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "java-aopalliance.jar"
+ #:jdk ,icedtea-8
+ #:tests? #f; no tests
+ #:source-dir "aopalliance/src/main"))
+ (home-page "http://aopalliance.sourceforge.net")
+ (synopsis "Aspect-Oriented Programming")
+ (description "The AOP Alliance project is a joint project between several
+software engineering people who are interested in Aspect-Oriented Programming
+(AOP) and Java.")
+ (license license:public-domain)))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sat, 14 Oct 2017 22:30:02 GMT)
Full text and
rfc822 format available.
Message #77 received at 28841 <at> debbugs.gnu.org (full text, mbox):
From: Julien Lepiller <julien <at> lepiller.eu>
* gnu/packages/java.scm (java-guice-servlet): New variable.
---
gnu/packages/java.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 9bc20f505..48b0a5eb9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6639,3 +6639,17 @@ the dependency is said to be unsatisfied, and the application is broken.")
(description "Guice is a lightweight dependency injection framework fo
Java 6 and above.")
(license license:asl2.0)))
+
+(define-public java-guice-servlet
+ (package
+ (inherit java-guice)
+ (name "java-guice-servlet")
+ (arguments
+ `(#:jar-name "guice-servlet.jar"
+ #:source-dir "extensions/servlet/src/"
+ #:jdk ,icedtea-8
+ #:tests? #f)); FIXME: not in a java subdir
+ (inputs
+ `(("guice" ,java-guice)
+ ("servlet" ,java-tomcat)
+ ,@(package-inputs java-guice)))))
--
2.14.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Wed, 18 Oct 2017 20:41:01 GMT)
Full text and
rfc822 format available.
Message #80 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Hi Julien,
> From: Julien Lepiller <julien <at> lepiller.eu>
>
> * gnu/packages/java.scm (java-hdrhistogram): New variable.
[…]
> + (add-before 'configure 'set-version
> + (lambda _
> + (let* ((version-java "src/main/java/org/HdrHistogram/Version.java")
> + (template (string-append version-java ".template")))
> + (copy-file template version-java)
> + (substitute* version-java
> + (("\\$VERSION\\$") ,version)
> + (("\\$BUILD_TIME\\$") "0"))))))))
Please end the phase with #t.
> + (native-inputs
> + `(("junit" ,java-junit)
> + ("hamcrest" ,java-hamcrest-core)))
> + (home-page "https://hdrhistogram.github.io/HdrHistogram")
> + (synopsis "High Dynamic Range Histogram")
Please use lower case here.
> + (description "Histogram that supports recording and analyzing sampled data
> +value counts across a configurable integer value range with configurable value
> +precision within the range. Value precision is expressed as the number of
> +significant digits in the value recording, and provides control over value
> +quantization behavior across the value range and the subsequent value resolution
> +at any given level.")
The first fragment is not a full sentence. Could you please change it?
> + (license license:bsd-2)))
The website says:
--8<---------------cut here---------------start------------->8---
HdrHistogram was originally authored by Gil Tene (@giltene)
(Java) and placed in the public domain, as explained at
http://creativecommons.org/publicdomain/zero/1.0
--8<---------------cut here---------------end--------------->8---
Does this not apply to this version?
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Wed, 18 Oct 2017 20:43:02 GMT)
Full text and
rfc822 format available.
Message #83 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Hi again,
> * gnu/packages/java.scm (java-tomcat): New variable.
> ---
[…]
> + (inputs
> + `(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
Actually … I’m *very* surprised that this is the only input here. I
remember trying to package this early on, but failing because there were
so many unpackaged dependencies.
Are you sure this is the only required input here? Do the sources come
with bundled jars?
> + (add-after 'unpack 'properties
> + (lambda _
> + (mkdir "downloads")
> + (substitute* "build.xml"
> + (("download-compile,") "")
> + (("depends=\"validate\"") "depends=\"build-prepare\"")
> + ((",download-validate") ""))
> + (with-output-to-file "build.properties"
> + (lambda _
> + (display
> + (string-append "base.path=" (getcwd)
> "/downloads\n"))))))
Forgot to say this in my previous comment: please end this phase with “#t”.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Wed, 18 Oct 2017 20:52:01 GMT)
Full text and
rfc822 format available.
Message #86 received at 28841 <at> debbugs.gnu.org (full text, mbox):
> * gnu/packages/java.scm (java-tomcat): New variable.
A third comment on the same package: could you move this from java.scm
to web.scm? That seems like a better home for this package.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Wed, 18 Oct 2017 20:53:02 GMT)
Full text and
rfc822 format available.
Message #89 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Hi Julien,
> From: Julien Lepiller <julien <at> lepiller.eu>
>
> * gnu/packages/java.scm (java-tomcat): New variable.
Impressive!
> + (build-system ant-build-system)
> + (inputs
> + `(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
Note to self: we still need to fix the ant-build-system to install a
file containing plain-text references to all inputs to prevent them from
being garbage collected.
> + (native-inputs
> + `(("java-junit" ,java-junit)))
> + (arguments
> + `(#:build-target "package"
> + #:tests? #f; requires downloading some files.
> + #:phases
> + (modify-phases %standard-phases
> + (add-after 'unpack 'properties
> + (lambda _
> + (mkdir "downloads")
> + (substitute* "build.xml"
> + (("download-compile,") "")
> + (("depends=\"validate\"") "depends=\"build-prepare\"")
> + ((",download-validate") ""))
Could you add a comment here to explain why this is needed?
> + (with-output-to-file "build.properties"
> + (lambda _
> + (display
> + (string-append "base.path=" (getcwd)
> "/downloads\n"))))))
I prefer using the make-flags here to set the base.path property. Have
you tried that?
> + (description "Apache Tomcat is an open source implementation of the Java
> +Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
> +technologies. The Java Servlet, JavaServer Pages, Java Expression Language and
> +Java WebSocket specifications are developed under the Java Community
> Process.")
“Open source”, eh? :) Please just write “[…] is an implementation of
the […]”. The second sentence is a bit odd. I don’t think that’s
information that belongs in a package description.
Thanks!
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Owner recorded as Ricardo Wurmus <rekado <at> elephly.net>.
Request was from
Ricardo Wurmus <rekado <at> elephly.net>
to
control <at> debbugs.gnu.org
.
(Wed, 18 Oct 2017 20:53:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Thu, 19 Oct 2017 08:40:01 GMT)
Full text and
rfc822 format available.
Message #94 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Hi Julien,
> From: Julien Lepiller <julien <at> lepiller.eu>
>
> * gnu/packages/java.scm (java-eclipse-jetty-test-helper): New
> variable.
[…]
I wonder: is there a better place for this than java.scm? The same
question applies to all other patches in this series. Let’s try to
avoid a second python.scm situation :)
> +
> +(define-public java-eclipse-jetty-test-helper
> + (package
> + (name "java-eclipse-jetty-test-helper")
> + (version "4.2")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append "https://github.com/eclipse/jetty.toolchain/"
> + "archive/jetty-test-helper-" version ".tar.gz"))
> + (sha256
> + (base32
> + "1jd6r9wc26fa11si4rn2gvy8ml8q4zw1nr6v04mjp8wvwpgvzwx5"))))
> + (build-system ant-build-system)
> + (arguments
> + `(#:jar-name "eclipse-jetty-test-helper.jar"
> + #:source-dir "src/main/java"
> + #:test-dir "src/test"
> + #:jdk ,icedtea-8
> + #:phases
> + (modify-phases %standard-phases
> + (add-before 'configure 'chdir
> + (lambda _
> + (chdir "jetty-test-helper")))
Please end the phase with “#t”.
> + (add-before 'build 'fix-build-path
> + (lambda _
> + ;; FIXME:
> + ;; This file assumes that the build directory is named "target"
> + ;; but it is not the case with our ant-build-system. Once we have
> + ;; maven though, we will have to rebuild this package because this
> + ;; assumption is correct with maven-build-system.
> + (substitute*
> + "src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java"
> + (("\"target\"") "\"build\"")
> + (("\"tests\"") "\"test-classes\""))))
Same here.
FWIW: I don’t think all Java packages will need to be repackaged to use
the maven-build-system. We should make sure that we clearly separate
the packages needed to bootstrap maven from all the rest.
> + (add-before 'check 'fix-paths
> + (lambda _
> + (with-directory-excursion "src/test/java/org/eclipse/jetty/toolchain/test"
> + (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java"
> + "MavenTestingUtilsTest.java")
> + (("target/tests") "build/test-classes")
> + (("\"target") "\"build"))))))))
Same as above: please end all phases with a boolean.
I would merge these two phases and add a comment between the different
substitutions. In my opinion, all substitutions should happen as early
as possible in the build process.
In the future we would like “substitute*” to return a boolean value
depending on success or failure to substitute, and then it would be good
to fail early.
> + (description "This packages contains helper classes for testing
> jetty.")
Could you rewrite this to “for testing the Jetty <flower watering
framework>” with an appropriate short description of Jetty substituted
for the placeholder? :)
> + (license (list license:epl1.0 license:asl2.0))))
What does this list mean? Could you please add a comment above this
field?
Thanks!
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Information forwarded
to
guix-patches <at> gnu.org, Ricardo Wurmus <rekado <at> elephly.net>
:
bug#28841
; Package
guix-patches
.
(Thu, 19 Oct 2017 09:46:02 GMT)
Full text and
rfc822 format available.
Message #97 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Le 2017-10-18 22:42, Ricardo Wurmus a écrit :
> Hi again,
>
>> * gnu/packages/java.scm (java-tomcat): New variable.
>> ---
>
> […]
>
>> + (inputs
>> + `(("java-eclipse-jdt-core" ,java-eclipse-jdt-core)))
>
> Actually … I’m *very* surprised that this is the only input here. I
> remember trying to package this early on, but failing because there
> were
> so many unpackaged dependencies.
>
> Are you sure this is the only required input here? Do the sources come
> with bundled jars?
I've added this to a phase:
(for-each delete-file (find-files "." ".*.jar$"))
and it still builds correctly, so i'm fairly confident that's the only
required dependency. The tests though have a lot of dependencies that
are fetched by the build script, but it's disabled in the "properties"
phase (I should use a different phase though, because it has nothing to
do with properties).
Now I have no idea how tomcat is supposed to work. I only need it
because it has a more recent version of the servlet api that is required
at least by jetty, and that part at least is correct. Maybe some of the
dependencies are actually run-time dependencies? At first I wanted to
create only a java-tomcat-servlet-api package, but I can't use the
upstream build.xml for that.
I will apply all your suggestions of course.
Thank you for the review!
Information forwarded
to
guix-patches <at> gnu.org, Ricardo Wurmus <rekado <at> elephly.net>
:
bug#28841
; Package
guix-patches
.
(Thu, 19 Oct 2017 09:58:02 GMT)
Full text and
rfc822 format available.
Message #100 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Le 2017-10-18 22:50, Ricardo Wurmus a écrit :
> Hi Julien,
>
>> From: Julien Lepiller <julien <at> lepiller.eu>
>>
>> * gnu/packages/java.scm (java-eclipse-jetty-test-helper): New
>> variable.
>
> […]
>
> I wonder: is there a better place for this than java.scm? The same
> question applies to all other patches in this series. Let’s try to
> avoid a second python.scm situation :)
eclipse.scm? Or maybe maven.scm, with all other maven bootstrap
dependencies (and maven itself)? Or maven-bootstrap.scm, maven.scm being
for the complete maven built with maven-bootstrap, and all the plugins
of maven?
Information forwarded
to
guix-patches <at> gnu.org, Ricardo Wurmus <rekado <at> elephly.net>
:
bug#28841
; Package
guix-patches
.
(Sun, 22 Oct 2017 12:14:02 GMT)
Full text and
rfc822 format available.
Message #103 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Le Thu, 19 Oct 2017 11:57:07 +0200,
julien lepiller <julien <at> lepiller.eu> a écrit :
> Le 2017-10-18 22:50, Ricardo Wurmus a écrit :
> > Hi Julien,
> >
> >> From: Julien Lepiller <julien <at> lepiller.eu>
> >>
> >> * gnu/packages/java.scm (java-eclipse-jetty-test-helper): New
> >> variable.
> >
> > […]
> >
> > I wonder: is there a better place for this than java.scm? The same
> > question applies to all other patches in this series. Let’s try to
> > avoid a second python.scm situation :)
>
> eclipse.scm? Or maybe maven.scm, with all other maven bootstrap
> dependencies (and maven itself)? Or maven-bootstrap.scm, maven.scm
> being for the complete maven built with maven-bootstrap, and all the
> plugins of maven?
So, I've corrected all your comments, except this one, and I don't want
to push without some sort of a consensus. Do I add these packages to
java.scm, eclipse.scm, maven.scm, maven-bootstrap.scm?
>
>
>
Information forwarded
to
guix-patches <at> gnu.org
:
bug#28841
; Package
guix-patches
.
(Sun, 22 Oct 2017 14:47:02 GMT)
Full text and
rfc822 format available.
Message #106 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Julien Lepiller <julien <at> lepiller.eu> writes:
> Le Thu, 19 Oct 2017 11:57:07 +0200,
> julien lepiller <julien <at> lepiller.eu> a écrit :
>
>> Le 2017-10-18 22:50, Ricardo Wurmus a écrit:
>> > Hi Julien,
>> >
>> >> From: Julien Lepiller <julien <at> lepiller.eu>
>> >>
>> >> * gnu/packages/java.scm (java-eclipse-jetty-test-helper): New
>> >> variable.
>> >
>> > […]
>> >
>> > I wonder: is there a better place for this than java.scm? The same
>> > question applies to all other patches in this series. Let’s try to
>> > avoid a second python.scm situation :)
>>
>> eclipse.scm? Or maybe maven.scm, with all other maven bootstrap
>> dependencies (and maven itself)? Or maven-bootstrap.scm, maven.scm
>> being for the complete maven built with maven-bootstrap, and all the
>> plugins of maven?
>
> So, I've corrected all your comments, except this one, and I don't want
> to push without some sort of a consensus. Do I add these packages to
> java.scm, eclipse.scm, maven.scm, maven-bootstrap.scm?
Since Eclipse Jetty is a Java HTTP server I’d just put it in web.scm.
Please also make sure that the description says something like “…helper
classes for the Jetty HTTP server…” or similar.
I could imagine an “eclipse” module to grow a lot, because there’s so
much software under than umbrella. And since Jetty is usable without
Maven I think it really shouldn’t just be put in a new maven.scm.
Does this make sense?
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Information forwarded
to
guix-patches <at> gnu.org, Ricardo Wurmus <rekado <at> elephly.net>
:
bug#28841
; Package
guix-patches
.
(Mon, 23 Oct 2017 07:16:01 GMT)
Full text and
rfc822 format available.
Message #109 received at 28841 <at> debbugs.gnu.org (full text, mbox):
Le 2017-10-22 16:46, Ricardo Wurmus a écrit :
> Julien Lepiller <julien <at> lepiller.eu> writes:
>
>> Le Thu, 19 Oct 2017 11:57:07 +0200,
>> julien lepiller <julien <at> lepiller.eu> a écrit :
>>
>>> Le 2017-10-18 22:50, Ricardo Wurmus a écrit:
>>> > Hi Julien,
>>> >
>>> >> From: Julien Lepiller <julien <at> lepiller.eu>
>>> >>
>>> >> * gnu/packages/java.scm (java-eclipse-jetty-test-helper): New
>>> >> variable.
>>> >
>>> > […]
>>> >
>>> > I wonder: is there a better place for this than java.scm? The same
>>> > question applies to all other patches in this series. Let’s try to
>>> > avoid a second python.scm situation :)
>>>
>>> eclipse.scm? Or maybe maven.scm, with all other maven bootstrap
>>> dependencies (and maven itself)? Or maven-bootstrap.scm, maven.scm
>>> being for the complete maven built with maven-bootstrap, and all the
>>> plugins of maven?
>>
>> So, I've corrected all your comments, except this one, and I don't
>> want
>> to push without some sort of a consensus. Do I add these packages to
>> java.scm, eclipse.scm, maven.scm, maven-bootstrap.scm?
>
> Since Eclipse Jetty is a Java HTTP server I’d just put it in web.scm.
> Please also make sure that the description says something like “…helper
> classes for the Jetty HTTP server…” or similar.
>
> I could imagine an “eclipse” module to grow a lot, because there’s so
> much software under than umbrella. And since Jetty is usable without
> Maven I think it really shouldn’t just be put in a new maven.scm.
>
> Does this make sense?
Yes it does! I will fix and push this evening, then. Thank you.
>
> --
> Ricardo
>
> GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
> https://elephly.net
Information forwarded
to
guix-patches <at> gnu.org, Ricardo Wurmus <rekado <at> elephly.net>
:
bug#28841
; Package
guix-patches
.
(Mon, 23 Oct 2017 21:01:01 GMT)
Full text and
rfc822 format available.
Message #112 received at submit <at> debbugs.gnu.org (full text, mbox):
Le Sat, 14 Oct 2017 23:32:16 +0200,
Julien Lepiller <julien <at> lepiller.eu> a écrit :
> Hi,
>
> this patch series adds 23 new java packages that are required before
> we can build maven.
>
>
>
Pushed as 90a127c7ed63c22485f0751f3c24a9072a05c8b8 -
6768e0a7a5f7171bf21db61e02c9de4d5776c682.
Reply sent
to
Julien Lepiller <julien <at> lepiller.eu>
:
You have taken responsibility.
(Mon, 23 Oct 2017 21:01:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Julien Lepiller <julien <at> lepiller.eu>
:
bug acknowledged by developer.
(Mon, 23 Oct 2017 21:01:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 21 Nov 2017 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 215 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.