This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch release/0.4.0
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git


The following commit(s) were added to refs/heads/release/0.4.0 by this push:
     new 8bf4fba  One last retouche (`install` still needs to be replaced with 
`deploy`)
8bf4fba is described below

commit 8bf4fbabbaf9246daabd1791d309d97d91396116
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Fri Jun 30 17:05:35 2023 +0200

    One last retouche (`install` still needs to be replaced with `deploy`)
---
 .github/workflows/build.yml |  2 +-
 pom.xml                     | 18 ++++++------------
 2 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5335ad6..3efc97b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -192,5 +192,5 @@ jobs:
         uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce 
  # 3.1.2
         with:
           name: Sources
-          path: /tmp/apache-log4j-tools-*-src.zip*
+          path: /tmp/apache-log4j-tools-*.zip*
           if-no-files-found: error
diff --git a/pom.xml b/pom.xml
index dee1dd7..c7c6223 100644
--- a/pom.xml
+++ b/pom.xml
@@ -480,18 +480,12 @@
                     ZipOutputStream zipOutputStream = new 
ZipOutputStream(outputStream);
                     try {
                         for (String file : pathByFile.keySet()) {
-                            try {
-                                Path path = pathByFile.get(file);
-                                ZipEntry zipEntry = new ZipEntry(file);
-                                zipEntry.setTime(0);
-                                zipOutputStream.putNextEntry(zipEntry);
-                                
zipOutputStream.write(Files.readAllBytes(path));
-                                zipOutputStream.closeEntry();
-                            } catch (Exception error) {
-                                System.err.println("failed to add file to ZIP: 
" + path);
-                                error.printStackTrace();
-                                System.exit(1);
-                            }
+                            Path path = pathByFile.get(file);
+                            ZipEntry zipEntry = new ZipEntry(file);
+                            zipEntry.setTime(0);
+                            zipOutputStream.putNextEntry(zipEntry);
+                            zipOutputStream.write(Files.readAllBytes(path));
+                            zipOutputStream.closeEntry();
                         }
                     } finally {
                         zipOutputStream.close();

Reply via email to