Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Prior to contributing code to ONOS, all developers should set-up their IDE to appropriately tag the code with the Apache 2 license header text. The bare text is checked in under tools/dev/header.txt, and the orginal original can be found at: 

http://www.apache.org/licenses/LICENSE-2.0.html

 

Example: Copyright setup on IntelliJ

First make sure that you have the Copyright plugin enabled. Then, under Preferences, select Copyright section and create a new Copyright profile, call it something like Apache 2, and prime it with the text above, without any decorations. Then configure your copyright formatting options as shown:

Example: Copyright setup on Eclipse

Files comments 
Remember to put a check on "Automatically add comments for new methods and types" to apply these templates on new files.  

Image Added

Git/Gerrit Setup

Developers planning to contribute code should configure git with their username and email.

...