dev@glassfish.java.net

Re: copyright date

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Thu, 25 Mar 2010 23:54:25 -0700

Jane Young wrote on 03/25/2010 09:46 PM:
> Can the first year be hard-coded and use the inception year of GF open
> source?

No.

>> Either the template you gave it was wrong, or the update did the wrong
>> thing. The license header should not start with "/**", and the lines
>> should start with " * ", not " * ".
>>
> That is the default comment for java files used by
> maven-license-plugin. See:
> http://code.google.com/p/maven-license-plugin/wiki/SupportedFormats
> This can be updated to "/*". The extra space in " * " is a result of
> the license template file I used. That all can be fixed.
>
>> And of course the first copyright year was lost.
>>
>> It updated over 9000 files. Was it because of those formatting
>> differences?
>> Or was it because of throwing away the first copyright year?
> It is both. It reformats it to what it has as the default "comment"
> standard and then checks that the Copyright year is incorrect and
> replaces it with the license template that I'm using.
>
> I experienced the maven-license-plugin and excluded the packages with
> org.apache and also modified the comment to start with "/*". Here's
> the diffs:
> http://webhome.sfbay.sun.com/janey/svn-diffs/diff-header.output

Unless it can handle the copyright year correctly, we can't use it.