all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob eb572f7c26528e288292f0780b6bb957dbc67617 1327 bytes (raw)
name: gnu/packages/patches/maven-shared-invoker-exception-handler-fix.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
From 30e9cde32c1e2513ca1f656fa5043c05935f2645 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Tue, 14 Jun 2022 23:53:13 +0300
Subject: [PATCH 1/2] MavenCommandLineBuilder: Fix exception handling

* src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
  (setGoals): Catch 'Exception' instead of 'CommandLineException' as
  'CommandLineException' is never thrown in the "try" block.
---
 .../apache/maven/shared/invoker/MavenCommandLineBuilder.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java b/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
index 7c7e985..eaf8333 100644
--- a/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
+++ b/src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java
@@ -257,7 +257,7 @@ public class MavenCommandLineBuilder
             {
                 cli.createArg().setLine( StringUtils.join( goals.iterator(), " " ) );
             }
-            catch ( CommandLineException e )
+            catch ( Exception e )
             {
                 throw new CommandLineConfigurationException( "Problem to set goals: " + e.getMessage(), e );
             }
-- 
2.25.1


debug log:

solving eb572f7c26 ...
found eb572f7c26 in https://yhetil.org/guix/87a6aavx17.fsf@gmail.com/

applying [1/1] https://yhetil.org/guix/87a6aavx17.fsf@gmail.com/
diff --git a/gnu/packages/patches/maven-shared-invoker-exception-handler-fix.patch b/gnu/packages/patches/maven-shared-invoker-exception-handler-fix.patch
new file mode 100644
index 0000000000..eb572f7c26

1:32: trailing whitespace.
-- 
Checking patch gnu/packages/patches/maven-shared-invoker-exception-handler-fix.patch...
1:34: new blank line at EOF.
+
Applied patch gnu/packages/patches/maven-shared-invoker-exception-handler-fix.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 eb572f7c26528e288292f0780b6bb957dbc67617	gnu/packages/patches/maven-shared-invoker-exception-handler-fix.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.