|
27 | 27 | </target>
|
28 | 28 |
|
29 | 29 | <target name="_build_ratinclude" depends="_rat_init">
|
30 |
| - <exec executable="git" failifexecutionfails="false" failonerror="false" resultproperty="git.success" output="${build.dir}/.versioned_files"> |
| 30 | + <exec executable="git" failifexecutionfails="false" failonerror="false" resultproperty="git.success" output="${build.dir}/.ratinclude"> |
31 | 31 | <arg line="ls-tree -r HEAD --name-only"/>
|
32 | 32 | </exec>
|
33 | 33 | <condition property="rat.skip" value="true">
|
|
37 | 37 | </condition>
|
38 | 38 | </target>
|
39 | 39 |
|
40 |
| - <target name="_rat_copy_versioned_files" depends="_build_ratinclude" unless="${rat.skip}"> |
41 |
| - <copy file="${build.dir}/.versioned_files" tofile="${build.dir}/.ratinclude"> |
42 |
| - <filterchain> |
43 |
| - <linecontainsregexp> |
44 |
| - <regexp pattern=".*\.(java|py|sh|xml|spec|md|iml|bat|btm|cql|css|g|html|jflex|jks|mod|name|pom|textile|yml|yaml|MIDRES|HIGHRES|LOWRES)$"/> |
45 |
| - </linecontainsregexp> |
46 |
| - </filterchain> |
47 |
| - </copy> |
48 |
| - </target> |
49 |
| - |
50 |
| - <target name="rat-check" depends="_rat_copy_versioned_files" unless="${rat.skip}" description="License checks on source" > |
| 40 | + <target name="rat-check" depends="_build_ratinclude" unless="${rat.skip}" description="License checks on source" > |
51 | 41 | <rat:report reportFile="${build.dir}/rat.txt">
|
52 | 42 | <fileset dir="." includesfile="${build.dir}/.ratinclude">
|
53 | 43 | <!-- Config files with not much creativity -->
|
54 |
| - <exclude name="**/ide/**/*"/> |
55 |
| - <exclude name="**/metrics-reporter-config-sample.yaml"/> |
56 |
| - <exclude name="**/cassandra.yaml"/> |
57 |
| - <exclude name="**/cassandra-murmur.yaml"/> |
58 |
| - <exclude name="**/cassandra-seeds.yaml"/> |
59 |
| - <exclude name="**/test/conf/cassandra.yaml"/> |
60 |
| - <exclude name="**/test/conf/cassandra_encryption.yaml"/> |
61 |
| - <exclude name="**/test/conf/cdc.yaml"/> |
62 |
| - <exclude name="**/test/conf/commitlog_compression_LZ4.yaml"/> |
63 |
| - <exclude name="**/test/conf/commitlog_compression_Zstd.yaml"/> |
64 |
| - <exclude name="**/test/conf/system_keyspaces_directory.yaml"/> |
65 |
| - <exclude name="**/test/conf/unit-test-conf/test-native-port.yaml"/> |
66 |
| - <exclude name="**/test/data/jmxdump/cassandra-3.0-jmx.yaml"/> |
67 |
| - <exclude name="**/test/data/jmxdump/cassandra-3.11-jmx.yaml"/> |
68 |
| - <exclude name="**/test/data/jmxdump/cassandra-4.0-jmx.yaml"/> |
69 |
| - <exclude name="**/tools/cqlstress-counter-example.yaml"/> |
70 |
| - <exclude name="**/tools/cqlstress-example.yaml"/> |
71 |
| - <exclude name="**/tools/cqlstress-insanity-example.yaml"/> |
72 |
| - <exclude name="**/tools/cqlstress-lwt-example.yaml"/> |
73 |
| - <!-- NOTICE files --> |
74 |
| - <exclude NAME="**/NOTICE.md"/> |
75 |
| - <!-- LICENSE files --> |
76 |
| - <exclude NAME="**/LICENSE.md"/> |
| 44 | + <exclude name="ide/**/*"/> |
| 45 | + <exclude name="conf/metrics-reporter-config-sample.yaml"/> |
| 46 | + <exclude name="**/cassandra*.yaml"/> |
| 47 | + <exclude NAME="doc/antora.yml"/> |
| 48 | + <exclude NAME="eclipse_compiler.properties"/> |
| 49 | + <exclude name="test/conf/cdc.yaml"/> |
| 50 | + <exclude name="pylib/cqlshlib/test/config/sslhandling*.config"/> |
| 51 | + <exclude name="test/conf/commitlog_compression_*.yaml"/> |
| 52 | + <exclude name="test/conf/system_keyspaces_directory.yaml"/> |
| 53 | + <exclude name="test/conf/unit-test-conf/test-native-port.yaml"/> |
| 54 | + <exclude name="tools/cqlstress-*.yaml"/> |
| 55 | + <!-- test data --> |
| 56 | + <exclude name="test/**/cassandra*.conf"/> |
| 57 | + <exclude name="test/**/*.csv"/> |
| 58 | + <exclude name="test/**/*.json"/> |
| 59 | + <exclude name="test/**/*.txt"/> |
| 60 | + <exclude name="test/data/**/*.adler32"/> |
| 61 | + <exclude name="test/data/**/*.crc32"/> |
| 62 | + <exclude name="test/data/**/CommitLog-*.log"/> |
| 63 | + <exclude name="test/data/**/*.bin"/> |
| 64 | + <exclude name="test/data/**/*.db"/> |
| 65 | + <exclude name="test/data/**/*.sha1"/> |
| 66 | + <exclude name="test/data/CASSANDRA-15313/lz4-jvm-crash-failure.txt"/> |
| 67 | + <exclude name="test/data/jmxdump/cassandra-*-jmx.yaml"/> |
| 68 | + <!-- Documentation files --> |
| 69 | + <exclude NAME="src/java/**/*.md"/> |
| 70 | + <exclude NAME="**/README*"/> |
| 71 | + <exclude NAME="CHANGES.txt"/> |
| 72 | + <exclude NAME="CASSANDRA-14092.txt"/> |
| 73 | + <!-- legal files --> |
| 74 | + <exclude NAME="NOTICE.txt"/> |
| 75 | + <exclude NAME="LICENSE.txt"/> |
| 76 | + <!-- misc --> |
| 77 | + <exclude NAME="**/*.patch"/> |
| 78 | + <exclude NAME="**/*.dpatch"/> |
| 79 | + <exclude NAME="**/*.diff"/> |
| 80 | + <exclude NAME="debian/TODO"/> |
| 81 | + <exclude NAME="debian/cassandra.bash-completion"/> |
| 82 | + <exclude NAME="debian/cassandra-sysctl.conf"/> |
| 83 | + <exclude NAME="debian/cassandra.install"/> |
| 84 | + <exclude NAME="debian/cassandra-tools.install"/> |
| 85 | + <exclude NAME="debian/compat"/> |
| 86 | + <exclude NAME="debian/control"/> |
| 87 | + <exclude NAME="debian/dirs"/> |
| 88 | + <exclude NAME="debian/patches/00list"/> |
77 | 89 | </fileset>
|
78 | 90 | </rat:report>
|
79 | 91 | <exec executable="grep" outputproperty="rat.failed.files" failifexecutionfails="false">
|
|
0 commit comments