From d0c1e5fec4155cb8abb3e3b8cc9c049e239e1246 Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Fri, 9 Oct 2015 21:12:44 -0700 Subject: [PATCH] HDFS-9215. Suppress the RAT warnings in hdfs-native-client module. Contributed by Haohui Mai. --- LICENSE.txt | 24 +++++++++++++++++++ .../hadoop-hdfs-native-client/pom.xml | 17 +++++++++++++ hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ hadoop-hdfs-project/hadoop-hdfs/pom.xml | 4 ---- 4 files changed, 43 insertions(+), 4 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index ee9dfa8edaa..f339a709640 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -320,3 +320,27 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +For hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/util/tree.h +--------------------------------------------------------------------- +Copyright 2002 Niels Provos +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml index 5632c48a010..12e6ec844c0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/pom.xml @@ -65,6 +65,23 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + + + org.apache.rat + apache-rat-plugin + + + src/main/native/* + src/main/native/config/* + src/main/native/m4/* + src/main/native/util/tree.h + src/contrib/** + + + + + native-win diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 6dc949b46db..8988f48bdd1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -2010,6 +2010,8 @@ Release 2.8.0 - UNRELEASED HDFS-8941. DistributedFileSystem listCorruptFileBlocks API should resolve relative path. (Rakesh R via wang) + HDFS-9215. Suppress the RAT warnings in hdfs-native-client module. (wheat9) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/pom.xml index 9cea46a5992..016c2bfbd5c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/pom.xml @@ -376,16 +376,12 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> dev-support/checkstyle* dev-support/jdiff/** dev-support/*tests - src/main/native/* - src/main/native/config/* - src/main/native/m4/* src/test/empty-file src/test/all-tests src/test/resources/*.tgz src/test/resources/data* src/test/resources/editsStored* src/test/resources/empty-file - src/main/native/util/tree.h src/test/aop/org/apache/hadoop/hdfs/server/datanode/DataXceiverAspects.aj src/main/webapps/datanode/robots.txt src/contrib/**