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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: trunk, 5.5
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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. LUCENE-7013.patch
          18 kB
          Shai Erera
        3. mvcopyright.py
          3 kB
          Shai Erera
        4. LUCENE-7013-precommit.patch
          3 kB
          Steven Rowe
        5. LUCENE-7013-precommit.patch
          3 kB
          Uwe Schindler
        6. LUCENE-7013-precommit.patch
          3 kB
          Uwe Schindler
        7. LUCENE-7013-precommit.patch
          102 kB
          Steven Rowe
        8. LUCENE-7013-precommit.patch
          103 kB
          Steven Rowe

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: