GNU bug report logs -
#28663
[PATCH] New java packages
Previous Next
Reported by: Julien Lepiller <julien <at> lepiller.eu>
Date: Sun, 1 Oct 2017 17:47:01 UTC
Severity: normal
Tags: patch
Done: Julien Lepiller <julien <at> lepiller.eu>
Bug is archived. No further changes may be made.
Full log
Message #92 received at 28663 <at> debbugs.gnu.org (full text, mbox):
julien <at> lepiller.eu writes:
> From: Julien Lepiller <julien <at> lepiller.eu>
>
> * guix/build-system/ant.scm: New #:main-class argument
> * guix/build/ant-build-system.scm: Generate a manifest file with
> additional properties.
> ---
[…]
> + (target (@ (name "manifest"))
> + (mkdir (@ (dir "${manifest.dir}")))
> + (echo (@ (file "${manifest.file}")
> + (message ,(string-append
> + (if main-class
> + (string-append
> + "Main-Class: " main-class
> + "${line.separator}")
> + "")
> + "")))))
> +
> (target (@ (name "compile"))
> (mkdir (@ (dir "${classes.dir}")))
> (javac (@ (includeantruntime "false")
> @@ -97,10 +112,11 @@
> (include (@ (name "**/*Test.java" )))))))
>
> (target (@ (name "jar")
> - (depends "compile"))
> + (depends "compile, manifest"))
> (mkdir (@ (dir "${jar.dir}")))
> (exec (@ (executable "jar"))
> - (arg (@ (line ,(string-append "-cf ${jar.dir}/" jar-name
> + (arg (@ (line ,(string-append "-cmf ${manifest.file} "
> + "${jar.dir}/" jar-name
> " -C ${classes.dir} ."))))))
This is good, thank you. Could you please also document this in the
manual in section “Build Systems”?
One question remains, though: will this affect the timestamps inside the
jar file? If so, can we reset the timestamp to ensure reproducibility?
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
This bug report was last modified 7 years and 234 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.