hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: eclipse formatter messing up apache license header
Date Fri, 21 Aug 2015 03:16:27 GMT
Just copy license header from existing class verbatim. 

Cheers



> On Aug 20, 2015, at 8:03 PM, hongbin ma <mahongbin@apache.org> wrote:
> 
> hi,
> 
> I'm using Eclipse Java EE IDE for Web Developers, Version: Kepler Service
> Release 2 on mac.
> I imported the dev-support/hbase-eclipse-formatter.xml as
> http://hbase.apache.org/book.html#eclipse.code.formatting.
> 
> When I format the code, everything is formatted as expected except:
> 
> /**
> * Licensed to the Apache Software Foundation (ASF) under one
> * or more contributor license agreements.  See the NOTICE file
> * distributed with this work for additional information
> * regarding copyright ownership.  The ASF licenses this file
> * to you 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.
> */
> 
> is formatted to:
> 
> /**
> * Licensed to the Apache Software Foundation (ASF) under one or more
> contributor license
> * agreements. See the NOTICE file distributed with this work for
> additional information regarding
> * copyright ownership. The ASF licenses this file to you 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.
> */
> 
> I'm wondering if anyone has the same problem with me.
> 
> -- 
> Regards,
> 
> *Bin Mahone | 马洪宾*
> Apache Kylin: http://kylin.io
> Github: https://github.com/binmahone

Mime
View raw message