mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: java-javaee-servletapi: Add properties-files to jar.
* gnu/packages/java.scm (jav-javaee-servletapi)[arguments]: Add phase 'copy-resources' to copy properties-files.
This commit is contained in:
parent
44bac44ca1
commit
8ea8d607f9
1 changed files with 19 additions and 1 deletions
|
@ -2955,7 +2955,25 @@ API and version 2.1 of the Java ServerPages API.")
|
||||||
`(#:jar-name "javax-servletapi.jar"
|
`(#:jar-name "javax-servletapi.jar"
|
||||||
;; no tests
|
;; no tests
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
#:source-dir "src/main/java"))
|
#:source-dir "src/main/java"
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'build 'copy-resources
|
||||||
|
(lambda _
|
||||||
|
(mkdir-p "build/classes/javax/servlet/http")
|
||||||
|
(let ((from-prefix "src/main/java/javax/servlet/")
|
||||||
|
(to-prefix "build/classes/javax/servlet/"))
|
||||||
|
(for-each (lambda (f)
|
||||||
|
(copy-file (string-append from-prefix f)
|
||||||
|
(string-append to-prefix f)))
|
||||||
|
(list "LocalStrings_ja.properties"
|
||||||
|
"LocalStrings.properties"
|
||||||
|
"LocalStrings_fr.properties"
|
||||||
|
"http/LocalStrings_es.properties"
|
||||||
|
"http/LocalStrings_ja.properties"
|
||||||
|
"http/LocalStrings.properties"
|
||||||
|
"http/LocalStrings_fr.properties")))
|
||||||
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("unzip" ,unzip)))
|
`(("unzip" ,unzip)))
|
||||||
(home-page "https://javaee.github.io/servlet-spec/")
|
(home-page "https://javaee.github.io/servlet-spec/")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue