Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-276

how to replace license header?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • core engine
    • None

    Description

      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

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Jalenchen0214 Jalen chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: