License header: Difference between revisions

From FreeMind
Jump to navigationJump to search
(Created page with "FreeMind uses the following license header in .java files (see also Licensing): <pre> /* FreeMind - A program for creating and viewing mind maps * Copyright (C) 2000-<YEAR> <AUTHORS> * See COPYING for Details * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * *...")
 
(+cat)
Line 40: Line 40:
Links:
Links:
* https://www.linuxfoundation.org/blog/blog/copyright-notices-in-open-source-software-projects
* https://www.linuxfoundation.org/blog/blog/copyright-notices-in-open-source-software-projects
[[Category:Development]]

Revision as of 05:54, 15 May 2026

FreeMind uses the following license header in .java files (see also Licensing):

/* FreeMind - A program for creating and viewing mind maps
 * Copyright (C) 2000-<YEAR> <AUTHORS>
 * See COPYING for Details
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

Questions:

  • What detail and granularity of authorship should be maintained in the license header?

Example author-declaring lines in the license headers of FreeMind 0.9.0:

  • Copyright (C) 2000-2001 Joerg Mueller <joergmueller@bigfoot.com>
  • Copyright (C) 2000-2006 Joerg Mueller, Daniel Polansky, Christian Foltin, Dimitri Polivaev and others.
  • Copyright (C) 2000-2006 Christian Foltin and others
  • Copyright (C) 2000-2004 Joerg Mueller, Daniel Polansky, Christian Foltin and others.

Helpful queries using Unix-like oneliners:

  • grep -r --include="*.java" "Copyright" .
  • grep -h -r --include="*.java" "Copyright" . | sort | uniq
  • grep -h -r --include="*.java" "Copyright" . | sed "s/.*\(C\).*[0-9] *//" | sort | uniq
    This one drops the beginning with years and year ranges.

Keywords: copyright header, copyright notice.

Links: