GNU bug report logs -
#32963
[PATCH] guix: ant-build-system: Install resources.
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 32963 in the body.
You can then email your comments to 32963 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#32963; Package
guix-patches.
(Sun, 07 Oct 2018 09:49:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org.
(Sun, 07 Oct 2018 09:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* guix/build/ant-build-system.scm (default-build.xml): Install resources.
---
guix/build/ant-build-system.scm | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/guix/build/ant-build-system.scm b/guix/build/ant-build-system.scm
index d79a2d55e..cb3164211 100644
--- a/guix/build/ant-build-system.scm
+++ b/guix/build/ant-build-system.scm
@@ -38,7 +38,8 @@
(define* (default-build.xml jar-name prefix #:optional
(source-dir ".") (test-dir "./test") (main-class #f)
(test-include '("**/*Test.java"))
- (test-exclude '("**/Abstract*Test.java")))
+ (test-exclude '("**/Abstract*Test.java"))
+ (source-resource-dir #f))
"Create a simple build.xml with standard targets for Ant."
(call-with-output-file "build.xml"
(lambda (port)
@@ -81,6 +82,14 @@
(destdir "${classes.dir}")
(classpath (@ (refid "classpath"))))))
+ (target (@ (name "add-resources")
+ (depends "compile"))
+ ,(if source-resource-dir
+ `(copy (@ (todir "${classes.dir}"))
+ (fileset (@ (dir ,source-resource-dir))
+ (include (@ (name "**/*")))))
+ ""))
+
(target (@ (name "compile-tests"))
(mkdir (@ (dir "${test.classes.dir}")))
(javac (@ (includeantruntime "false")
@@ -116,7 +125,7 @@
test-exclude)))))
(target (@ (name "jar")
- (depends "compile, manifest"))
+ (depends "compile, add-resources, manifest"))
(mkdir (@ (dir "${jar.dir}")))
(exec (@ (executable "jar"))
(arg (@ (line ,(string-append "-cmf ${manifest.file} "
@@ -162,7 +171,10 @@ to the default GNU unpack strategy."
(default-build.xml jar-name
(string-append (assoc-ref outputs "out")
"/share/java")
- source-dir test-dir main-class test-include test-exclude))
+ source-dir test-dir main-class test-include test-exclude
+ (if (file-exists? "src/main/resources")
+ "src/main/resources"
+ #f)))
(setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
(setenv "CLASSPATH" (generate-classpath inputs))
#t)
Information forwarded
to
guix-patches <at> gnu.org:
bug#32963; Package
guix-patches.
(Mon, 01 Sep 2025 15:41:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 32963 <at> debbugs.gnu.org (full text, mbox):
Hi,
What’s the status of this old submission
https://issues.guix.gnu.org/issue/32963
?
On Sun, 07 Oct 2018 at 11:45, Danny Milosavljevic <dannym <at> scratchpost.org> wrote:
> * guix/build/ant-build-system.scm (default-build.xml): Install resources.
> ---
> guix/build/ant-build-system.scm | 18 +++++++++++++++---
> 1 file changed, 15 insertions(+), 3 deletions(-)
>
> diff --git a/guix/build/ant-build-system.scm b/guix/build/ant-build-system.scm
> index d79a2d55e..cb3164211 100644
> --- a/guix/build/ant-build-system.scm
> +++ b/guix/build/ant-build-system.scm
> @@ -38,7 +38,8 @@
> (define* (default-build.xml jar-name prefix #:optional
> (source-dir ".") (test-dir "./test") (main-class #f)
> (test-include '("**/*Test.java"))
> - (test-exclude '("**/Abstract*Test.java")))
> + (test-exclude '("**/Abstract*Test.java"))
> + (source-resource-dir #f))
> "Create a simple build.xml with standard targets for Ant."
> (call-with-output-file "build.xml"
> (lambda (port)
> @@ -81,6 +82,14 @@
> (destdir "${classes.dir}")
> (classpath (@ (refid "classpath"))))))
>
> + (target (@ (name "add-resources")
> + (depends "compile"))
> + ,(if source-resource-dir
> + `(copy (@ (todir "${classes.dir}"))
> + (fileset (@ (dir ,source-resource-dir))
> + (include (@ (name "**/*")))))
> + ""))
> +
> (target (@ (name "compile-tests"))
> (mkdir (@ (dir "${test.classes.dir}")))
> (javac (@ (includeantruntime "false")
> @@ -116,7 +125,7 @@
> test-exclude)))))
>
> (target (@ (name "jar")
> - (depends "compile, manifest"))
> + (depends "compile, add-resources, manifest"))
> (mkdir (@ (dir "${jar.dir}")))
> (exec (@ (executable "jar"))
> (arg (@ (line ,(string-append "-cmf ${manifest.file} "
> @@ -162,7 +171,10 @@ to the default GNU unpack strategy."
> (default-build.xml jar-name
> (string-append (assoc-ref outputs "out")
> "/share/java")
> - source-dir test-dir main-class test-include test-exclude))
> + source-dir test-dir main-class test-include test-exclude
> + (if (file-exists? "src/main/resources")
> + "src/main/resources"
> + #f)))
> (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
> (setenv "CLASSPATH" (generate-classpath inputs))
> #t)
Merging or closing?
Cheers,
simon
Reply sent
to
Simon Tournier <zimon.toutoune <at> gmail.com>:
You have taken responsibility.
(Fri, 03 Oct 2025 11:48:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>:
bug acknowledged by developer.
(Fri, 03 Oct 2025 11:48:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 32963-done <at> debbugs.gnu.org (full text, mbox):
Hi,
On Mon, 01 Sep 2025 at 17:30, Simon Tournier <zimon.toutoune <at> gmail.com> wrote:
> What’s the status of this old submission
>
> https://issues.guix.gnu.org/issue/32963
>
> ?
>
> On Sun, 07 Oct 2018 at 11:45, Danny Milosavljevic <dannym <at> scratchpost.org> wrote:
>> * guix/build/ant-build-system.scm (default-build.xml): Install resources.
>> ---
>> guix/build/ant-build-system.scm | 18 +++++++++++++++---
>> 1 file changed, 15 insertions(+), 3 deletions(-)
>>
>> diff --git a/guix/build/ant-build-system.scm b/guix/build/ant-build-system.scm
>> index d79a2d55e..cb3164211 100644
>> --- a/guix/build/ant-build-system.scm
>> +++ b/guix/build/ant-build-system.scm
>> @@ -38,7 +38,8 @@
[...]
> Merging or closing?
One month without an answer and a submission 7 years ago, closing.
Feel free to reopen if I’m missing something.
Cheers,
simon
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org.
(Sat, 01 Nov 2025 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.