You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Jalen chen (Jira)" <ji...@apache.org> on 2020/10/13 07:45:00 UTC

[jira] [Commented] (RAT-276) how to replace license header?

    [ https://issues.apache.org/jira/browse/RAT-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17212901#comment-17212901 ] 

Jalen chen commented on RAT-276:
--------------------------------

Okay, thank you for your reply.
I think this feature is very useful. Developers probably use incorrect licenses and require a lot of manual modification. I will try to implement this feature and open the source code.

> how to replace license header? 
> -------------------------------
>
>                 Key: RAT-276
>                 URL: https://issues.apache.org/jira/browse/RAT-276
>             Project: Apache Rat
>          Issue Type: Improvement
>          Components: engine
>            Reporter: Jalen chen
>            Priority: Major
>
> I want to change my project source file frome MIT license header to Apache License header,
> but when I use -a option, the RAT add the Apache License header at the beginning of the file, but the old license is still here:
> ------------------------------------------------------------------------------------------------------------------
> /*
>  * Copyright(c) 2020 xxx
>  *
>  * 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.
>  */
>  
> /*
>  * Copyright © 2020 xxx
>  *
>  * Permission is hereby granted, without written agreement and without
>  * license or royalty fees, to use, copy, modify, and distribute this
>  * software and its documentation for any purpose, provided that the
>  * above copyright notice and the following two paragraphs appear in
>  * all copies of this software.
>  *
>  * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
>  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
>  * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
>  * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
>  * DAMAGE.
>  *
>  * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
>  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
>  * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
>  * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
>  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
>  */
>  
> #ifndef XXX
> #error "Include <yy.h> instead."
> #endif
> ………..other codes
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)