Skip to content

Commit ce49e77

Browse files
Missing license info and headers
patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-18807
1 parent 8bbf92a commit ce49e77

18 files changed

+309
-48
lines changed

.build/build-rat.xml

+47-35
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</target>
2828

2929
<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">
3131
<arg line="ls-tree -r HEAD --name-only"/>
3232
</exec>
3333
<condition property="rat.skip" value="true">
@@ -37,43 +37,55 @@
3737
</condition>
3838
</target>
3939

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" >
5141
<rat:report reportFile="${build.dir}/rat.txt">
5242
<fileset dir="." includesfile="${build.dir}/.ratinclude">
5343
<!-- 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"/>
7789
</fileset>
7890
</rat:report>
7991
<exec executable="grep" outputproperty="rat.failed.files" failifexecutionfails="false">

.jenkins/Jenkinsfile

+6-7
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
// "License"); you may not use this file except in compliance
77
// with the License. You may obtain a copy of the License at
88
//
9-
// https://www.apache.org/licenses/LICENSE-2.0
9+
// http://www.apache.org/licenses/LICENSE-2.0
1010
//
11-
// Unless required by applicable law or agreed to in writing,
12-
// software distributed under the License is distributed on an
13-
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
// KIND, either express or implied. See the License for the
15-
// specific language governing permissions and limitations
16-
// under the License.
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// Se# Licensed to the Apache Software Foundation (ASF) under onee the License for the specific language governing permissions and
15+
// limitations under the License.
1716
//
1817
//
1918
// Jenkins declaration of how to build and test the current codebase.

LICENSE.txt

+9-5
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,12 @@
202202
limitations under the License.
203203

204204

205-
THIRD-PARTY DEPENDENCIES
206-
========================
207-
Convenience copies of some third-party dependencies are distributed with
208-
Apache Cassandra as Java jar files in lib/. Licensing information for
209-
these files can be found in the lib/licenses directory.
205+
APACHE CASSANDRA SUBCOMPONENTS:
206+
207+
Apache Cassandra includes a number of subcomponents with
208+
separate copyright notices and license terms. Your use of the source
209+
code for these subcomponents is subject to the terms and
210+
conditions of the following licenses.
211+
212+
This product bundles a file (VIntCoding.java) from Protocol Buffers
213+
copyright Google Inc., which is available under a BSD license.

build.properties.default

+19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
#
119
# Maven2 Repository Locations (you can override these in "build.properties" to point to a local proxy, e.g. Nexus)
20+
#
221
artifact.remoteRepository.central: https://repo1.maven.org/maven2
322
artifact.remoteRepository.apache: https://repo.maven.apache.org/maven2
423

conf/jvm.options

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
#
119
###########################################################################
220
# jvm.options #
321
# #

debian/cassandra-sysctl.conf

+16
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
117
vm.max_map_count = 1048575
218
net.ipv4.tcp_keepalive_time=300

debian/cassandra.conf

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
117
# Provided by the cassandra package
218
cassandra - memlock unlimited
319
cassandra - nofile 100000

debian/cassandra.postinst

+16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
#!/bin/sh
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
218
# postinst script for cassandra
319

420
set -e

debian/default

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
117
# NOTICE: See also /etc/cassandra/cassandra-env.sh
218

319
# EXTRA_CLASSPATH provides the means to extend Cassandra's classpath with

debian/init

+16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
#! /bin/sh
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
218
### BEGIN INIT INFO
319
# Provides: cassandra
420
# Required-Start: $remote_fs $network $named $time

debian/nodetool-completion

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
117
have nodetool && have cqlsh &&
218
{
319

debian/rules

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
#!/usr/bin/make -f
2-
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
318
# Uncomment to enable verbose mode.
419
#export DH_VERBOSE=1
520

pylib/cqlshlib/setup.cfg

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
117
[nosetests]
218
verbosity=3
319
detailed-errors=1

pylib/requirements.txt

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
#
118
# See python driver docs: futures and six have to be installed before
219
# cythonizing the driver, perhaps only on old pips.
320
# http://datastax.github.io/python-driver/installation.html#cython-based-extensions

redhat/cassandra

+16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
218
#
319
# /etc/init.d/cassandra
420
#

0 commit comments

Comments
 (0)