[ https://issues.apache.org/jira/browse/CASSANDRA-16558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332565#comment-17332565 ]
Benedict Elliott Smith commented on CASSANDRA-16558: ---------------------------------------------------- So, it's possible to dump the files in tree using the following: {code} <target name="_rat_include_init"> <exec executable="git" output=".ratinclude"> <arg value="ls-tree"/> <arg value="--name-only"/> <arg value="-r"/> <arg value="HEAD"/> </exec> </target> {code} It would be possible to dump this to a temporary file, and to then run it through some [filters|https://ant.apache.org/manual/Types/filterchain.html]. It looks a little painful, and poorly documented - and it doesn't appear to use java/perl regexes. But something like this would require no work on the part of the user, if we can figure out the precise incantation. > Fix rat check (April 2021) > -------------------------- > > Key: CASSANDRA-16558 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16558 > Project: Cassandra > Issue Type: Task > Components: Build, Packaging > Reporter: Michael Semb Wever > Assignee: Michael Semb Wever > Priority: High > Fix For: 2.2.20, 3.0.25, 3.11.11, 4.0, 4.0-rc1 > > Attachments: Screenshot 2021-04-18 at 15.34.01.png > > > The rat plugin in build.xml is a mess and not properly catching missing > license headers. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org