|
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="**/.asf.yaml"/> |
55 | | - <exclude name="**/.github/pull_request_template.md"/> |
56 | | - <exclude name="**/ide/**/*"/> |
57 | | - <exclude name="**/metrics-reporter-config-sample.yaml"/> |
58 | | - <exclude name="**/cassandra.yaml"/> |
59 | | - <exclude name="**/cassandra_latest.yaml"/> |
60 | | - <exclude name="**/cassandra-murmur.yaml"/> |
61 | | - <exclude name="**/cassandra-seeds.yaml"/> |
62 | | - <exclude name="**/harry-generic.yaml"/> |
63 | | - <exclude name="**/doc/antora.yml"/> |
64 | | - <exclude name="**/test/conf/cassandra.yaml"/> |
65 | | - <exclude name="**/test/conf/cassandra-old.yaml"/> |
66 | | - <exclude name="**/test/conf/cassandra-with-sstable-compressor.yaml"/> |
67 | | - <exclude name="**/test/conf/cassandra-converters-special-cases-old-names.yaml"/> |
68 | | - <exclude name="**/test/conf/cassandra-converters-special-cases.yaml"/> |
69 | | - <exclude name="**/test/conf/cassandra_encryption.yaml"/> |
70 | | - <exclude name="**/test/conf/cdc.yaml"/> |
71 | | - <exclude name="**/test/conf/commitlog_compression_LZ4.yaml"/> |
72 | | - <exclude name="**/test/conf/commitlog_compression_Zstd.yaml"/> |
73 | | - <exclude name="**/test/conf/system_keyspaces_directory.yaml"/> |
74 | | - <exclude name="**/test/conf/sstableloader_with_encryption.yaml"/> |
75 | | - <exclude name="**/test/conf/unit-test-conf/test-native-port.yaml"/> |
76 | | - <exclude name="**/test/data/jmxdump/cassandra-3.0-jmx.yaml"/> |
77 | | - <exclude name="**/test/data/jmxdump/cassandra-3.11-jmx.yaml"/> |
78 | | - <exclude name="**/test/data/jmxdump/cassandra-4.0-jmx.yaml"/> |
79 | | - <exclude name="**/test/data/jmxdump/cassandra-4.1-jmx.yaml"/> |
80 | | - <exclude name="**/test/data/config/version=3.0.0-alpha1.yml"/> |
81 | | - <exclude name="**/test/data/config/version=3.11.0.yml"/> |
82 | | - <exclude name="**/test/data/config/version=4.0-alpha1.yml"/> |
83 | | - <exclude name="**/test/resources/data/config/YamlConfigurationLoaderTest/shared_client_error_reporting_exclusions.yaml"/> |
84 | | - <exclude name="**/tools/cqlstress-counter-example.yaml"/> |
85 | | - <exclude name="**/tools/cqlstress-example.yaml"/> |
86 | | - <exclude name="**/tools/cqlstress-insanity-example.yaml"/> |
87 | | - <exclude name="**/tools/cqlstress-lwt-example.yaml"/> |
| 44 | + <exclude name=".asf.yaml"/> |
| 45 | + <exclude name="**/cassandra*.yaml"/> |
| 46 | + <exclude NAME="doc/antora.yml"/> |
| 47 | + <exclude name="ide/**/*"/> |
| 48 | + <exclude name="**/*.json"/> |
| 49 | + <exclude name="pylib/cqlshlib/test/config/sslhandling*.config"/> |
| 50 | + <exclude NAME="src/resources/org/apache/cassandra/cql3/reserved_keywords.txt"/> |
| 51 | + <exclude NAME="src/resources/org/apache/cassandra/index/sasi/analyzer/filter/*.txt"/> |
| 52 | + <exclude name="test/conf/cassandra-topology.properties"/> |
| 53 | + <exclude name="test/conf/cdc.yaml"/> |
| 54 | + <exclude name="test/conf/commitlog*.yaml"/> |
| 55 | + <exclude name="test/conf/system_keyspaces_directory.yaml"/> |
| 56 | + <exclude name="test/conf/sstableloader_with_encryption.yaml"/> |
| 57 | + <exclude name="test/conf/unit-test-conf/test-native-port.yaml"/> |
| 58 | + <exclude name="test/resources/data/config/YamlConfigurationLoaderTest/*.yaml"/> |
| 59 | + <exclude name="tools/cqlstress-*.yaml"/> |
| 60 | + <!-- test data --> |
| 61 | + <exclude name="pylib/cqlshlib/test/test_authproviderhandling_config/*"/> |
| 62 | + <exclude name="test/**/cassandra*.conf"/> |
| 63 | + <exclude name="test/**/*.csv"/> |
| 64 | + <exclude name="test/**/*.txt"/> |
| 65 | + <exclude name="test/data/**/*.adler32"/> |
| 66 | + <exclude name="test/data/**/*.crc32"/> |
| 67 | + <exclude name="test/data/**/CommitLog-*.log"/> |
| 68 | + <exclude name="test/data/**/*.bin"/> |
| 69 | + <exclude name="test/data/**/*.db"/> |
| 70 | + <exclude name="test/data/**/*.sha1"/> |
| 71 | + <exclude name="test/data/CASSANDRA-15313/lz4-jvm-crash-failure.txt"/> |
| 72 | + <exclude name="test/data/jmxdump/cassandra-*-jmx.yaml"/> |
88 | 73 | <!-- Documentation files --> |
89 | 74 | <exclude name=".github/pull_request_template.md"/> |
90 | 75 | <exclude NAME="doc/modules/**/*"/> |
|
0 commit comments