You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2020/02/27 19:09:35 UTC

[plc4x] branch develop updated: - Finished documenting using RAT for validating releases

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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7db7c76  - Finished documenting using RAT for validating releases
7db7c76 is described below

commit 7db7c763732fe178b5ee9304f731f54ecd9e0711
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Feb 27 20:09:27 2020 +0100

    - Finished documenting using RAT for validating releases
---
 .../asciidoc/developers/release/validation.adoc    | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/src/site/asciidoc/developers/release/validation.adoc b/src/site/asciidoc/developers/release/validation.adoc
index 8e90c3c..58dc580 100644
--- a/src/site/asciidoc/developers/release/validation.adoc
+++ b/src/site/asciidoc/developers/release/validation.adoc
@@ -52,7 +52,10 @@ TIP: (Especially pay attention to the year in the `NOTICE` file if this is the f
 [%interactive]
 * [ ] [RM] Verify the staged source README, RELEASE_NOTE files correspond to those in the extracted source bundle.
 * [ ] [RM] Run RAT externally to ensure there are no surprises.
-** TODO: Document this.
+[subs="attributes"]
+----
+java -jar apache-rat-0.13.jar apache-plc4x-{current-full-version}-source-release.zip > rat.log
+----
 * [ ] Search for `SNAPSHOT` references:
 [subs="attributes"]
 ----
@@ -62,6 +65,23 @@ find . -type f -name 'pom.xml' -exec grep -l "SNAPSHOT" {} \;
 * [ ] Build the project according to the information in the README.md file.
 * [ ] [RM] Build the project with all `with-xyz` profiles and tests enabled and an empty maven local repo: by appendng `-Dmaven.repo.local=../.m2`.
 
+=== Using RAT
+
+Even if we are using RAT to ensure sources have headers in place, still the project can contain exclusions that hide things from the check.
+
+The only way to avoid missing important files is by running `RAT` externally.
+
+If you haven't got it, yet please download it form https://creadur.apache.org/rat/download_rat.cgi[here].
+
+Also do I like to run RAT against the zip archive containing the source release as this way you avoid the problem of eventually scanning the binaries produced by the build (If you run RAT after building, it will complain about every jar and ever class file).
+
+[subs="attributes"]
+----
+java -jar apache-rat-0.13.jar apache-plc4x-{current-full-version}-source-release.zip > rat.log
+----
+
+By piping the result into a text file gives you the chance to investigate the content more easily.
+
 === Release Tooling
 
 In the `tools` directory we have a little script that can help downloading and checking the hashes and signatures automatically.