Provide a better failure message when the rat check fails

patch by Mick Semb Wever; reviewed by David Capwell, Ekaterina Dimitrova for CASSANDRA-16620
This commit is contained in:
Mick Semb Wever 2021-04-23 14:56:00 +02:00
parent 8b977d0da9
commit ad16aa1763
No known key found for this signature in database
GPG Key ID: E91335D77E3E87CB
2 changed files with 6 additions and 2 deletions

View File

@ -67,7 +67,10 @@
<exclude NAME="**/LICENSE.md"/>
</fileset>
</rat:report>
<fail message="Some files have missing or incorrect license information. Check RAT report in ${build.dir}/rat.txt for more details!">
<exec executable="grep" outputproperty="rat.failed.files" failifexecutionfails="false">
<arg line="-A5 'Unapproved licenses' ${build.dir}/rat.txt"/>
</exec>
<fail message="Some files have missing or incorrect license information. Check RAT report in ${build.dir}/rat.txt for more details! \n ${rat.failed.files}">
<condition>
<and>
<not>

3
.gitignore vendored
View File

@ -8,6 +8,7 @@ logs/
data/
conf/hotspot_compiler
doc/cql3/CQL.html
pylib/src/
# C* debs
build-stamp
@ -26,7 +27,7 @@ debian/files
# IntelliJ
.idea/
*.eml
*.iml
**/*.iml
*.ipr
*.iws