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

pottlinger pushed a commit to branch feature/RAT-369
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git


The following commit(s) were added to refs/heads/feature/RAT-369 by this push:
     new 191b119b RAT-369: Issue errors but do not fail the build in order to 
work incrementally
191b119b is described below

commit 191b119bb0edc37d79ad806d0f29cc614520b9e8
Author: P. Ottlinger <[email protected]>
AuthorDate: Sun Apr 21 22:29:24 2024 +0200

    RAT-369: Issue errors but do not fail the build in order to work 
incrementally
---
 .../src/main/java/org/apache/rat/mp/util/ignore/GlobIgnoreMatcher.java  | 2 +-
 apache-rat-tasks/src/main/java/org/apache/rat/anttasks/Report.java      | 2 +-
 pom.xml                                                                 | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/apache-rat-plugin/src/main/java/org/apache/rat/mp/util/ignore/GlobIgnoreMatcher.java
 
b/apache-rat-plugin/src/main/java/org/apache/rat/mp/util/ignore/GlobIgnoreMatcher.java
index 91ea8846..19ecc436 100644
--- 
a/apache-rat-plugin/src/main/java/org/apache/rat/mp/util/ignore/GlobIgnoreMatcher.java
+++ 
b/apache-rat-plugin/src/main/java/org/apache/rat/mp/util/ignore/GlobIgnoreMatcher.java
@@ -78,7 +78,7 @@ public class GlobIgnoreMatcher implements IgnoreMatcher {
         if (scmIgnore != null && scmIgnore.exists() && scmIgnore.isFile()) {
             log.debug("Parsing exclusions from " + scmIgnore);
 
-            try (BufferedReader reader = new BufferedReader(new 
FileReader(scmIgnore, StandardCharsets.UTF_8))) {
+            try (BufferedReader reader = new BufferedReader(new 
FileReader(scmIgnore))) {
                 String line;
                 while ((line = reader.readLine()) != null) {
                     if (!isComment(line)) {
diff --git a/apache-rat-tasks/src/main/java/org/apache/rat/anttasks/Report.java 
b/apache-rat-tasks/src/main/java/org/apache/rat/anttasks/Report.java
index fd2bedb0..10414a85 100644
--- a/apache-rat-tasks/src/main/java/org/apache/rat/anttasks/Report.java
+++ b/apache-rat-tasks/src/main/java/org/apache/rat/anttasks/Report.java
@@ -297,7 +297,7 @@ public class Report extends Task {
     private class Logger implements Log {
 
         private void write(int level, String msg) {
-            try (PrintWriter pw = new PrintWriter(new 
LogOutputStream(Report.this, level), false, StandardCharsets.UTF_8))
+            try (PrintWriter pw = new PrintWriter(new 
LogOutputStream(Report.this, level)))
             {
                pw.write(msg);
             }
diff --git a/pom.xml b/pom.xml
index d41e3768..923bb837 100644
--- a/pom.xml
+++ b/pom.xml
@@ -306,6 +306,8 @@ agnostic home for software distribution comprehension and 
audit tools.
           <artifactId>spotbugs-maven-plugin</artifactId>
           <version>4.8.4.0</version>
           <configuration>
+            <!-- TODO remove after RAT-369 is done -->
+            <failOnError>false</failOnError>
             
<!--includeFilterFile>spotbugs-security-include.xml</includeFilterFile>
                   
<excludeFilterFile>spotbugs-security-exclude.xml</excludeFilterFile-->
             <plugins>

Reply via email to