You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by po...@apache.org on 2020/07/02 06:16:35 UTC
[creadur-rat] branch feature/RAT-270 updated (5511240 -> 7710692)
This is an automated email from the ASF dual-hosted git repository.
pottlinger pushed a change to branch feature/RAT-270
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git.
from 5511240 RAT-269: Update Apache ANT to fix CVE-2020-1945
new f4cae65 RAT-270: Enable output to console by default
new 7710692 RAT-270: Add changelog
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/main/java/org/apache/rat/mp/RatCheckMojo.java | 7 ++++---
src/changes/changes.xml | 3 +++
2 files changed, 7 insertions(+), 3 deletions(-)
[creadur-rat] 02/02: RAT-270: Add changelog
Posted by po...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pottlinger pushed a commit to branch feature/RAT-270
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git
commit 7710692a375bc722c19c59ee36561750835fb11f
Author: Hugo Hirsch <gi...@hugo-hirsch.de>
AuthorDate: Thu Jul 2 08:16:18 2020 +0200
RAT-270: Add changelog
---
src/changes/changes.xml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 4817f93..2987082 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -55,6 +55,9 @@ The <action> type attribute can be add,update,fix,remove.
<body>
<release version="0.14-SNAPSHOT" date="2020-xx-xx" description="Current SNAPSHOT - to be done">
+ <action issue="RAT-270" type="add" dev="pottlinger">
+ Change default behaviour to output erroneous files to console. Can be disabled by setting rat.consoleOutput to false.
+ </action>
<action issue="RAT-269" type="fix" dev="pottlinger">
Update to latest Apache Ant to fix CVE-2020-1945.
</action>
[creadur-rat] 01/02: RAT-270: Enable output to console by default
Posted by po...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pottlinger pushed a commit to branch feature/RAT-270
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git
commit f4cae65a355a79ab085186e5ea23a39fb4706e42
Author: Hugo Hirsch <gi...@hugo-hirsch.de>
AuthorDate: Thu Jul 2 08:13:33 2020 +0200
RAT-270: Enable output to console by default
---
.../src/main/java/org/apache/rat/mp/RatCheckMojo.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java b/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
index 3537cbd..2898b1a 100644
--- a/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
+++ b/apache-rat-plugin/src/main/java/org/apache/rat/mp/RatCheckMojo.java
@@ -40,6 +40,7 @@ import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
/**
* Run Rat to perform a violation check.
@@ -93,11 +94,11 @@ public class RatCheckMojo extends AbstractRatMojo {
/**
* Whether to output the names of files that have unapproved licenses to the
- * console.
+ * console. Defaults to {@code true} to ease builds in containers where you are unable to access rat.txt easily.
*
* @since 0.12
*/
- @Parameter(property = "rat.consoleOutput", defaultValue = "false")
+ @Parameter(property = "rat.consoleOutput", defaultValue = "true")
private boolean consoleOutput;
private ClaimStatistic getRawReport()
@@ -106,7 +107,7 @@ public class RatCheckMojo extends AbstractRatMojo {
try {
fw = new OutputStreamWriter(
new FileOutputStream(reportFile),
- Charset.forName("UTF-8"));
+ StandardCharsets.UTF_8);
final ClaimStatistic statistic = createReport(fw, getStyleSheet());
fw.close();
fw = null;