maven-surefire/0001-Maven-3.patch

35 lines
1.4 KiB
Diff
Raw Normal View History

2018-03-16 12:49:00 +00:00
From 7d877972a669298678b68733dcb9c344cef79a4d Mon Sep 17 00:00:00 2001
2016-05-05 09:24:13 +00:00
From: Michael Simacek <msimacek@redhat.com>
Date: Thu, 5 May 2016 11:20:48 +0200
2018-03-16 12:49:00 +00:00
Subject: [PATCH 1/4] Maven 3
2016-05-05 09:24:13 +00:00
---
.../java/org/apache/maven/plugin/surefire/SurefireHelper.java | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java
2018-03-16 12:49:00 +00:00
index 7a26c27..de36f03 100644
2016-05-05 09:24:13 +00:00
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java
2017-09-18 06:12:18 +00:00
@@ -204,16 +204,7 @@ public final class SurefireHelper
private static String getFailureBehavior( MavenExecutionRequest request )
throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
{
- try
- {
- return request.getFailureBehavior();
- }
- catch ( NoSuchMethodError e )
- {
- return (String) request.getClass()
- .getMethod( "getReactorFailureBehavior" )
- .invoke( request );
- }
2018-03-16 12:49:00 +00:00
+ return request.getReactorFailureBehavior();
2017-09-18 06:12:18 +00:00
}
private static boolean failIfNoTests( SurefireReportParameters reportParameters )
2016-05-05 09:24:13 +00:00
--
2018-03-16 12:49:00 +00:00
2.14.3
2016-05-05 09:24:13 +00:00