Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7013

Move license header before package declaration in all *.java files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • trunk, 5.5
    • None
    • None
    • New, Patch Available

    Description

      In LUCENE-7012 we committed a change to the IDE templates to place the license header before the package declaration in new Java files.

      I wrote a simple Python script which moves the header before the package declaration. To be on the safe side, if a .java file does not already start with the license header or with package org.apache, it doesn't modify it and asks for manual intervention.

      It runs quite fast, so I don't mind running and committing one module at a time.

      Attachments

        1. mvcopyright.py
          3 kB
          Shai Erera
        2. mvcopyright.py
          3 kB
          Shai Erera
        3. LUCENE-7013-precommit.patch
          3 kB
          Steven Rowe
        4. LUCENE-7013-precommit.patch
          3 kB
          Uwe Schindler
        5. LUCENE-7013-precommit.patch
          3 kB
          Uwe Schindler
        6. LUCENE-7013-precommit.patch
          102 kB
          Steven Rowe
        7. LUCENE-7013-precommit.patch
          103 kB
          Steven Rowe
        8. LUCENE-7013.patch
          18 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: