Subject: [PATCH 08/14] guix: java-utils: Look for actual jar files.

From: Julien Lepiller <[email-masked]>
Date: Tue, 1 Jun 2021 00:44:21 +0200

* guix/build/java-utils.scm (install-from-pom): Fix `find-files` to look
only for jar files.
---
 guix/build/java-utils.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/build/java-utils.scm b/guix/build/java-utils.scm
index 5a54a14c1b..87c3ac43c9 100644
--- a/guix/build/java-utils.scm
+++ b/guix/build/java-utils.scm
@@ -125,7 +125,7 @@ the phase fails."
                                                              version ".jar"))))
            ;; Otherwise, we try to find any jar file.
            (jars (if (null? jars)
-                     (find-files "." ".*.jar")
+                     (find-files "." "\\.jar$")
                      jars))
            (jar-name (string-append repository artifact "-" version ".jar"))
            (pom-name (string-append repository artifact "-" version ".pom")))
-- 
2.31.1