dev@glassfish.java.net

Re: copyright date

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Tue, 23 Mar 2010 18:01:00 -0700

Hi Bill,

I looked into the maven-license-plugin
(http://code.google.com/p/maven-license-plugin).

We can use this in our GF workspace and update/replace all the files
(*.java, *.properties, *.xml, etc) with the same license header file.
This can be an one time step to update and commit the files and then
added to the build (pom.xml) such that it will check for any files w/o a
header or the wrong year and fail the build.

Some files have the following years: "Copyright 1997-2010" and
"Copyright 1998-2010. Using the maven-license-plugin, it will update
all the files to use the same year: "Copyright 2010". Are you okay
with this?

Also, the copyright file has "Sun Microsystems, Inc. All rights
reserved." We should change that to say Oracle?

Is there an updated Copyright file I can use as a template ?

Currently this is what I have:

-----
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 
 Copyright ${year} Sun Microsystems, Inc. All rights reserved.
 
 The contents of this file are subject to the terms of either the GNU
 General Public License Version 2 only ("GPL") or the Common Development
 and Distribution License("CDDL") (collectively, the "License"). You
 may not use this file except in compliance with the License. You can obtain
 a copy of the License at
https://glassfish.dev.java.net/public/CDDL+GPL.html
 or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
 language governing permissions and limitations under the License.
 
 When distributing the software, include this License Header Notice in each
 file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
 Sun designates this particular file as subject to the "Classpath" exception
 as provided by Sun in the GPL Version 2 section of the License file that
 accompanied this code. If applicable, add the following below the License
 Header, with the fields enclosed by brackets [] replaced by your own
 identifying information: "Portions Copyrighted [year]
 [name of copyright owner]"
 
 Contributor(s):
 
 If you wish your version of this file to be governed by only the CDDL or
 only the GPL Version 2, indicate your decision by adding "[Contributor]
 elects to include this software in this distribution under the [CDDL or GPL
 Version 2] license." If you don't indicate a single choice of license, a
 recipient has the option to distribute your version of this file under
 either the CDDL, the GPL Version 2 or to extend the choice of license to
 its licensees as provided above. However, if you add GPL Version 2 code
 and therefore, elected the GPL Version 2 license, then the option applies
 only if the new code is made subject to such option by the copyright
 holder.
-----


${year} will be replaced with 2010 as I run the maven plugin:
 "mvn license:format -Dyear=2010"

Thanks,
Jane





Bill Shannon wrote:
> Jason Lee wrote on 03/23/10 01:41 PM:
>> On 3/23/10 2:53 PM, Bill Shannon wrote:
>>> Just a reminder to *everyone*.
>>>
>>> The current year is *2010*.
>>>
>>> If you change a file, *you* *MUST* update the copyright string to
>>> include 2010.
>> There are maven plugins to help enforce this. Have we looked into using
>> one? Or a commit hook in the repo?
>
> I'd love to have someone investigate the possibilities and report back...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>