Difference between revisions of "DSDP/MTJ/Developer Resources/Copyright Standards"

From Eclipsepedia

Jump to: navigation, search
(How to document Copyright when importing code from other eclipse projects)
 
(3 intermediate revisions by one user not shown)
Line 5: Line 5:
 
Sometimes we need to use some class from JDT or PDE that are not exported. The approach we follow, is to copy the classes into our MTJ repositories to avoid improper API usage.
 
Sometimes we need to use some class from JDT or PDE that are not exported. The approach we follow, is to copy the classes into our MTJ repositories to avoid improper API usage.
  
After we do that which copyright we should keep on those files?
+
After we do that which copyright we should put on those files?
  
 
*Update copyright-from-year to be the oldest year of any stuff brought in
 
*Update copyright-from-year to be the oldest year of any stuff brought in
 +
 
*If bringing in an entire file, take the original file's copyright header, change the copyright-to-year to be this year, and add a single line under contributors like : '''Committer name (company) - adapted from org.eclipse.someplugin/TheClassCopied'''
 
*If bringing in an entire file, take the original file's copyright header, change the copyright-to-year to be this year, and add a single line under contributors like : '''Committer name (company) - adapted from org.eclipse.someplugin/TheClassCopied'''
*If bringing in some methods only, take my OWN copyright header, change the copyright-from-year to be the oldest year of all stuff brought in, mark the methods brought in as '''<copied from org.eclipse.someplugin/SomeClass (Copyright Owner and others)> theCodeCopied </copied from ...>''', and add a single line under contributors like '''Committer name (company) - added theFunctionalityAdded from org.eclipse.someplugin/SomeClass'''
+
 
*If bringing in images or other binary files, I commit with a commit comment like '''[bugNumber] copied someImage from org.eclipse.somePlugin/icons'''
+
*If bringing in some methods only, take your OWN copyright header, change the copyright-from-year to be the oldest year of all stuff brought in, mark the methods brought in as '''<copied from org.eclipse.someplugin/SomeClass (Copyright Owner and others)> theCodeCopied </copied from ...>''', and add a single line under contributors like '''Committer name (company) - added theFunctionalityAdded from org.eclipse.someplugin/SomeClass'''
 +
 
 +
*If bringing in images or other binary files, commit with a commit comment like '''[bugNumber] copied someImage from org.eclipse.somePlugin/icons'''
 +
 
  
 
For example, see [http://dev.eclipse.org/viewsvn/index.cgi/trunk/plugins/org.eclipse.mtj.ui/src/org/eclipse/mtj/internal/ui/editor/ISortableContentOutlinePage.java?root=DSDP_MTJ&view=markup ISortableContentOutlinePage.java]
 
For example, see [http://dev.eclipse.org/viewsvn/index.cgi/trunk/plugins/org.eclipse.mtj.ui/src/org/eclipse/mtj/internal/ui/editor/ISortableContentOutlinePage.java?root=DSDP_MTJ&view=markup ISortableContentOutlinePage.java]
 +
 +
[[Category:DSDP]] [[Category:MTJ]]

Latest revision as of 10:35, 30 January 2009

[edit] Default Eclipse Foundation Copyright and License Notice

[edit] How to document Copyright when importing code from other eclipse projects

Sometimes we need to use some class from JDT or PDE that are not exported. The approach we follow, is to copy the classes into our MTJ repositories to avoid improper API usage.

After we do that which copyright we should put on those files?

  • Update copyright-from-year to be the oldest year of any stuff brought in
  • If bringing in an entire file, take the original file's copyright header, change the copyright-to-year to be this year, and add a single line under contributors like : Committer name (company) - adapted from org.eclipse.someplugin/TheClassCopied
  • If bringing in some methods only, take your OWN copyright header, change the copyright-from-year to be the oldest year of all stuff brought in, mark the methods brought in as <copied from org.eclipse.someplugin/SomeClass (Copyright Owner and others)> theCodeCopied </copied from ...>, and add a single line under contributors like Committer name (company) - added theFunctionalityAdded from org.eclipse.someplugin/SomeClass
  • If bringing in images or other binary files, commit with a commit comment like [bugNumber] copied someImage from org.eclipse.somePlugin/icons


For example, see ISortableContentOutlinePage.java