summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/java.scm4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index ba98182ede..f76dfc8681 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2001,9 +2001,7 @@ new Date();"))
               (modules '((guix build utils)))
               (snippet
                 `(begin
-                   (for-each delete-file (find-files "." ".*.bin$"))
-                   (for-each delete-file (find-files "." ".*.exe$"))
-                   (for-each delete-file (find-files "." ".*.jar$"))
+                   (for-each delete-file (find-files "." ".*.(bin|exe|jar)$"))
                    #t))))
     (build-system gnu-build-system)
     (outputs '("out" "jdk" "doc"))