You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Philipp Ottlinger (Jira)" <ji...@apache.org> on 2020/10/13 07:28:00 UTC
[jira] [Resolved] (RAT-276) how to replace license header?
[ https://issues.apache.org/jira/browse/RAT-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philipp Ottlinger resolved RAT-276.
-----------------------------------
Resolution: Won't Fix
Thanks for reaching out - RAT only provides the ability to add a license header.
It doesn't perform a fully fledged analysis in order to be able to remove any existing license information.
Sorry, you need to do this manually or via a mass search&replace instead.
> 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)