Eclipse Winery
latest

Contents:

  • User Guide
  • Developer Guide
  • Notes on TOSCA
  • Architectural Decision Log
  • How to Contribute
  • Found an issue?
Eclipse Winery
  • Docs »
  • Update Copyright Header
  • Edit on GitHub

Update Copyright Header¶

Steps to update copyright headers:

  1. Define scopes to apply the copy right header to:

    • Open properties Ctrl Alt S and search for Scopes

    • Select packages for the scope and click Include Recursively ../../_images/SetScopes.png

  2. Apply copyright settings to Scope:

    • Open properties ctrl alt s and search for Copyright

    • Add copyright entry and apply previously created scope ../../_images/Copyright.png

  3. Create copyright profile:

    • Open Settings/Editor/Copyright/’Copyright Profiles’

    • Add copyright text without borders

      • Set Copyright year dynamically with ${today.year}

    • Add copyright regex (Acquired by selecting the copyright header in intellij editor and pressing ctrl shift f)

    • Allow replacing old copyright identified by regex seems not to work ../../_images/CopyrightProfiles.png

  4. Adjust copyright formatting settings

    • Open Settings/Editor/Copyright/Formatting

    • Change to Use block comments with Prefix each line, set Relative Location to Before other commentsand increase Separator before/after Length to 81 ../../_images/CopyrightFormat.png

  5. Delete previous copyright header manually (Replace with empty String)

  6. Right click package and choose Update Copyright..

    • Check files for duplicated copyright header (occurs if copyright regex not set correctly)


© Copyright (c) 2013-2022 Contributors to the Eclipse Foundation. Revision 635d9f39.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.