aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Boskovits <boskovits@gmail.com>2018-06-12 13:52:40 +0200
committerGábor Boskovits <boskovits@gmail.com>2018-06-18 17:08:32 +0200
commit90ea1006a86518e523c510eee1214fd81e71da74 (patch)
tree2f6bf21cf0c732201cebbaa7a1af7a7adfd66733
parent6969c4de445a390eaa05de22bc5a537a76a76169 (diff)
downloadgnu-guix-90ea1006a86518e523c510eee1214fd81e71da74.tar
gnu-guix-90ea1006a86518e523c510eee1214fd81e71da74.tar.gz
guix: ant-build-system: Use manifest task to create manifest.
* guix/build/ant-build-system.scm (default-build.xml): Use manifest task to create manifest file instead of a custom echo task.
-rw-r--r--guix/build/ant-build-system.scm13
1 files changed, 5 insertions, 8 deletions
diff --git a/guix/build/ant-build-system.scm b/guix/build/ant-build-system.scm
index 3ed12b9f4e..87c782d853 100644
--- a/guix/build/ant-build-system.scm
+++ b/guix/build/ant-build-system.scm
@@ -68,14 +68,11 @@
(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}")
- "")
- "")))))
+ (manifest (@ (file "${manifest.file}"))
+ ,(if main-class
+ `(attribute (@ (name "Main-Class")
+ (value ,main-class)))
+ "")))
(target (@ (name "compile"))
(mkdir (@ (dir "${classes.dir}")))