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 089bdac  Troubleshoot the bsh
089bdac is described below

commit 089bdacc626c5acc5e91f2856b336287119a7117
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Fri Jun 30 16:52:36 2023 +0200

    Troubleshoot the bsh
---
 pom.xml | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/pom.xml b/pom.xml
index 4727cc0..4639707 100644
--- a/pom.xml
+++ b/pom.xml
@@ -480,12 +480,18 @@
                     ZipOutputStream zipOutputStream = new 
ZipOutputStream(outputStream);
                     try {
                         for (String file : pathByFile.keySet()) {
-                            Path path = pathByFile.get(file);
-                            ZipEntry zipEntry = new ZipEntry(file);
-                            zipEntry.setTime(0);
-                            zipOutputStream.putNextEntry(zipEntry);
-                            zipOutputStream.write(Files.readAllBytes(path));
-                            zipOutputStream.closeEntry();
+                            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);
+                            }
                         }
                     } finally {
                         zipOutputStream.close();
@@ -576,7 +582,7 @@
 
       <build>
 
-        <defaultGoal>deploy</defaultGoal>
+        <defaultGoal>install</defaultGoal>
 
         <plugins>
 

Reply via email to