guix: ant-build-system: Put dummy project-name into default build.xml.
authorHartmut Goebel <h.goebel@crazy-compilers.com>
Mon, 5 Sep 2016 09:08:39 +0000 (11:08 +0200)
committerHartmut Goebel <h.goebel@crazy-compilers.com>
Thu, 25 Jul 2019 08:21:45 +0000 (10:21 +0200)
Without this, ant reported error messages like
Target "tests" does not exist in the project "null".
Simple using the jar-name is a good compromise.

* guix/build/ant-build-system.scm (default-build.xml): Add attribute
  to sxml expression.

guix/build/ant-build-system.scm

index a0dd6f0..49549c1 100644 (file)
@@ -43,7 +43,8 @@
   (call-with-output-file "build.xml"
     (lambda (port)
       (sxml->xml
-       `(project (@ (basedir "."))
+       `(project (@ (basedir ".")
+                    (name ,jar-name))
                  (property (@ (name "classes.dir")
                               (value "${basedir}/build/classes")))
                  (property (@ (name "manifest.dir")