From b7704ce4b6b453d15bf6ca55a9404ef45912d341 Mon Sep 17 00:00:00 2001 From: Sean Busbey <sean.busbey@gmail.com> Date: Sun, 20 May 2018 19:40:09 -0500 Subject: [PATCH] [licensing] add missing headers called out by the RAT plugin. --- .editorconfig | 15 +++++++++++++++ core/src/main/resources/project.properties | 14 ++++++++++++++ .../src/main/resources/log4j2.properties | 15 +++++++++++++++ .../ElasticsearchIntegTestBase.java | 16 ++++++++++++++++ kudu/src/main/resources/log4j.properties | 15 +++++++++++++++ mapkeeper/README.md | 16 ++++++++++++++++ nosqldb/README.md | 16 ++++++++++++++++ orientdb/src/main/resources/log4j.properties | 14 ++++++++++++++ rest/pom.xml | 15 +++++++++++++++ rest/src/test/resources/WebContent/index.html | 18 +++++++++++++++++- s3/src/main/conf/s3.properties | 14 ++++++++++++++ solr/src/main/resources/log4j.properties | 14 ++++++++++++++ solr6/src/main/resources/log4j.properties | 14 ++++++++++++++ 13 files changed, 195 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 889bbb16..b5d9cacc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,18 @@ +# Copyright (c) 2015, 2017 YCSB contributors. +# All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You +# may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. See accompanying +# LICENSE file. # For more info, see: http://EditorConfig.org root = true diff --git a/core/src/main/resources/project.properties b/core/src/main/resources/project.properties index defbd482..9c6df29b 100644 --- a/core/src/main/resources/project.properties +++ b/core/src/main/resources/project.properties @@ -1 +1,15 @@ +# Copyright (c) 2016 YCSB contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You +# may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. See accompanying +# LICENSE file. version=${project.version} diff --git a/elasticsearch5/src/main/resources/log4j2.properties b/elasticsearch5/src/main/resources/log4j2.properties index dc3e1ceb..866654ae 100644 --- a/elasticsearch5/src/main/resources/log4j2.properties +++ b/elasticsearch5/src/main/resources/log4j2.properties @@ -1,3 +1,18 @@ +# Copyright (c) 2017 YCSB contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You +# may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. See accompanying +# LICENSE file. +# appender.console.type = Console appender.console.name = console appender.console.layout.type = PatternLayout diff --git a/elasticsearch5/src/test/java/com/yahoo/ycsb/db/elasticsearch5/ElasticsearchIntegTestBase.java b/elasticsearch5/src/test/java/com/yahoo/ycsb/db/elasticsearch5/ElasticsearchIntegTestBase.java index dda76633..12ab5052 100644 --- a/elasticsearch5/src/test/java/com/yahoo/ycsb/db/elasticsearch5/ElasticsearchIntegTestBase.java +++ b/elasticsearch5/src/test/java/com/yahoo/ycsb/db/elasticsearch5/ElasticsearchIntegTestBase.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017 YCSB contributors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you + * may not use this file except in compliance with the License. You + * may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. See accompanying + * LICENSE file. + */ package com.yahoo.ycsb.db.elasticsearch5; import com.yahoo.ycsb.ByteIterator; diff --git a/kudu/src/main/resources/log4j.properties b/kudu/src/main/resources/log4j.properties index 7a754a8b..549fd4ae 100644 --- a/kudu/src/main/resources/log4j.properties +++ b/kudu/src/main/resources/log4j.properties @@ -1,3 +1,18 @@ +# Copyright (c) 2016 YCSB contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You +# may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. See accompanying +# LICENSE file. +# # Root logger option log4j.rootLogger=DEBUG, stderr diff --git a/mapkeeper/README.md b/mapkeeper/README.md index bc441ba6..0f6076f4 100644 --- a/mapkeeper/README.md +++ b/mapkeeper/README.md @@ -1,3 +1,19 @@ +<!-- +Copyright (c) 2012 YCSB contributors. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); you +may not use this file except in compliance with the License. You +may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +implied. See the License for the specific language governing +permissions and limitations under the License. See accompanying +LICENSE file. +--> # MapKeeper-Specific Properties ## mapkeeper.host diff --git a/nosqldb/README.md b/nosqldb/README.md index 2b080d4a..878a6a5b 100644 --- a/nosqldb/README.md +++ b/nosqldb/README.md @@ -1,3 +1,19 @@ +<!-- +Copyright (c) 2012 YCSB contributors. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); you +may not use this file except in compliance with the License. You +may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +implied. See the License for the specific language governing +permissions and limitations under the License. See accompanying +LICENSE file. +--> CONFIGURE $KVHOME is Oracle NoSQL Database package files. diff --git a/orientdb/src/main/resources/log4j.properties b/orientdb/src/main/resources/log4j.properties index 0ede1d4c..86345ce7 100644 --- a/orientdb/src/main/resources/log4j.properties +++ b/orientdb/src/main/resources/log4j.properties @@ -1,3 +1,17 @@ +# Copyright (c) 2016 YCSB contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You +# may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. See accompanying +# LICENSE file. # Root logger option log4j.rootLogger=INFO, stderr diff --git a/rest/pom.xml b/rest/pom.xml index c980b04f..1bfe2f51 100644 --- a/rest/pom.xml +++ b/rest/pom.xml @@ -115,4 +115,19 @@ </dependency> </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>src/test/resources/error_trace.txt</exclude> + <exclude>src/test/resources/trace.txt</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </project> diff --git a/rest/src/test/resources/WebContent/index.html b/rest/src/test/resources/WebContent/index.html index ded87fc2..73634eac 100644 --- a/rest/src/test/resources/WebContent/index.html +++ b/rest/src/test/resources/WebContent/index.html @@ -1,5 +1,21 @@ <!DOCTYPE html> <html> +<!-- +Copyright (c) 2016 YCSB contributors. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); you +may not use this file except in compliance with the License. You +may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +implied. See the License for the specific language governing +permissions and limitations under the License. See accompanying +LICENSE file. +--> <head> <meta charset="ISO-8859-1"> @@ -10,4 +26,4 @@ Welcome to the rest-binding integration test cases! </body> -</html> \ No newline at end of file +</html> diff --git a/s3/src/main/conf/s3.properties b/s3/src/main/conf/s3.properties index f36c7745..5fa6451e 100644 --- a/s3/src/main/conf/s3.properties +++ b/s3/src/main/conf/s3.properties @@ -1,3 +1,17 @@ +# Copyright (c) 2015 YCSB contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You +# may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. See accompanying +# LICENSE file. # # Sample S3 configuration properties # diff --git a/solr/src/main/resources/log4j.properties b/solr/src/main/resources/log4j.properties index 0ede1d4c..86345ce7 100644 --- a/solr/src/main/resources/log4j.properties +++ b/solr/src/main/resources/log4j.properties @@ -1,3 +1,17 @@ +# Copyright (c) 2016 YCSB contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You +# may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. See accompanying +# LICENSE file. # Root logger option log4j.rootLogger=INFO, stderr diff --git a/solr6/src/main/resources/log4j.properties b/solr6/src/main/resources/log4j.properties index 0ede1d4c..86345ce7 100644 --- a/solr6/src/main/resources/log4j.properties +++ b/solr6/src/main/resources/log4j.properties @@ -1,3 +1,17 @@ +# Copyright (c) 2016 YCSB contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You +# may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. See accompanying +# LICENSE file. # Root logger option log4j.rootLogger=INFO, stderr -- GitLab