From: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
To: Julien Lepiller <julien@lepiller.eu>
Cc: 30417@debbugs.gnu.org
Subject: [bug#30417] [PATCH 05/11] gnu: Add java-sisu-build-api.
Date: Wed, 14 Feb 2018 20:53:33 +0100 [thread overview]
Message-ID: <20180214205333.113684dd@alma-ubu> (raw)
In-Reply-To: <20180210230438.26794-5-julien@lepiller.eu>
On Sun, 11 Feb 2018 00:04:32 +0100
Julien Lepiller <julien@lepiller.eu> wrote:
> * gnu/packages/java.scm (java-sisu-build-api): New variable.
> ---
> gnu/packages/java.scm | 54
> +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed,
> 54 insertions(+)
>
> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> index 29439d667..af9acd71f 100644
> --- a/gnu/packages/java.scm
> +++ b/gnu/packages/java.scm
> @@ -2757,6 +2757,60 @@ compilers.")
> (description "This package contains the Javac Compiler support
> for Plexus Compiler component.")))
>
> +(define-public java-sisu-build-api
> + (package
> + (name "java-sisu-build-api")
> + (version "0.0.7")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append
> "https://github.com/sonatype/sisu-build-api/"
> + "archive/plexus-build-api-"
> version ".tar.gz"))
> + (sha256
> + (base32
> +
> "1c3rrpma3x634xp2rm2p5iskfhzdyc7qfbhjzr70agrl1jwghgy2"))))
> + (build-system ant-build-system)
> + (arguments
> + `(#:jar-name "sisu-build-api.jar"
> + #:source-dir "src/main/java"
> + #:jdk ,icedtea-8
> + #:tests? #f; FIXME: how to run the tests?
> + #:phases
> + (modify-phases %standard-phases
> + (add-before 'build 'copy-resurces
> + (lambda _
> + (mkdir-p
> "build/classes/org/sonatype/plexus/build/incremental")
> + (copy-file
> "src/main/resources/org/sonatype/plexus/build/incremental/version.properties"
> +
> "build/classes/org/sonatype/plexus/build/incremental/version.properties")
The content of this file is:
api.version = ${project.version}
Is that OK? Or should we better write the correct version into the file?
> + #t))
> + (add-before 'build 'generate-plexus-compontent
> + (lambda _
> + (mkdir-p "build/classes/META-INF/plexus")
> + ;; This file is required for plexus to inject this
> package.
> + ;; FIXME: how is it generated?
> + (with-output-to-file
> "build/classes/META-INF/plexus/components.xml"
> + (lambda _
> + (display
> + "<component-set>\n
> + <components>\n
> + <component>\n
> +
> <role>org.sonatype.plexus.build.incremental.BuildContext</role>\n
> + <role-hint>default</role-hint>\n
> +
> <implementation>org.sonatype.plexus.build.incremental.DefaultBuildContext</implementation>\n
> + <description>Filesystem based non-incremental build context
> implementation which behaves as if all files\n +were just
> created.</description>\n
> + </component>\n
> + </components>\n
> +</component-set>\n"))))))))
R5RS specifies that "with-output-to-file re-turn(s) the value(s)
yielded by thunk". As your last call within thunk is "(display..."),
the return value is unspecified. Add a "#t" to either the thunk or
after (call-with-output-to-file ..").
Linter complained about some too long lines, but I think that's OK. At
least I wouldn't know how to do better.
Otherwise, LGTM.
Björn
next prev parent reply other threads:[~2018-02-14 19:54 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-10 22:48 [bug#30417] [PATCH] java-plexus and java-modello Julien Lepiller
2018-02-10 23:04 ` [bug#30417] [PATCH 01/11] gnu: Add java-plexus-component-annotations Julien Lepiller
2018-02-11 23:36 ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 02/11] gnu: Add java-plexus-cipher Julien Lepiller
2018-02-11 23:42 ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 03/11] gnu: Add java-plexus-compiler-api Julien Lepiller
2018-02-11 23:47 ` Björn Höfling
2018-02-14 19:18 ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 04/11] gnu: Add java-plexus-compiler-javac Julien Lepiller
2018-02-14 19:23 ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 05/11] gnu: Add java-sisu-build-api Julien Lepiller
2018-02-14 19:53 ` Björn Höfling [this message]
2018-02-10 23:04 ` [bug#30417] [PATCH 06/11] gnu: Add java-modello-core Julien Lepiller
2018-02-14 20:22 ` Björn Höfling
2018-02-14 21:56 ` Julien Lepiller
2018-02-16 19:16 ` Björn Höfling
2018-02-17 15:06 ` Marius Bakke
2018-02-24 21:11 ` Julien Lepiller
2018-02-24 21:20 ` Marius Bakke
2018-02-10 23:04 ` [bug#30417] [PATCH 07/11] gnu: Add java-modello-plugins-java Julien Lepiller
2018-02-14 20:34 ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 08/11] gnu: Add java-modello-plugins-xml Julien Lepiller
2018-02-14 20:37 ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 09/11] gnu: Add java-modello-test Julien Lepiller
2018-02-14 20:39 ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 10/11] gnu: Add java-modello-plugins-xpp3 Julien Lepiller
2018-02-14 20:43 ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 11/11] gnu: Add java-plexus-sec-dispatcher Julien Lepiller
2018-02-14 20:59 ` Björn Höfling
2018-02-14 21:02 ` Björn Höfling
2018-02-25 11:08 ` bug#30417: [PATCH] java-plexus and java-modello Julien Lepiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180214205333.113684dd@alma-ubu \
--to=bjoern.hoefling@bjoernhoefling.de \
--cc=30417@debbugs.gnu.org \
--cc=julien@lepiller.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.