On Dec 13, 2010, at 11:39 AM, Bertrand Delacretaz wrote:

> On Mon, Dec 13, 2010 at 11:33 AM, Stefane Fermigier <[email protected]> wrote:
>> On Dec 13, 2010, at 11:30 AM, Bertrand Delacretaz wrote:
> ...
>>> http://incubator.apache.org/rat/ is useful to check headers before a
>>> release, but I'm not sure what the use case is for a maven license
>>> headers plugin.
>> 
>> I can see 3 different use cases:
>> 
>> 1. Check that all your source code files have some kind of header, with some 
>> rules (for instance regarding the copyright years, etc.)
>> 
>> 2. Add a given header to your files when it's missing, according to some 
>> rules.
>> 
>> 3. Report on the various license types used in your headers, so as to check 
>> you don't have some legal issue.
> 
> RAT does 1. and 3., it's the official ASF tool and IIRC there's a
> Maven plugin for it.

Cool.

> If someone wants to integrate it in our build I'm fine with that,
> otherwise it's easy to run it manually when preparing a release.

I have a Python script that does 2. (taylored for the Nuxeo code base, but easy 
to change).

But it's possible that either Eclipse or IDEA (or Netbeans) has this function 
built-in. Maybe someone with more knowledge than I can answer ?

  S.

--
Stefane Fermigier, Founder and Chairman, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com/ - +33 1 40 33 79 87 - http://twitter.com/sfermigier
Join the Nuxeo Group on LinkedIn: http://linkedin.com/groups?gid=43314
New Nuxeo release: http://nuxeo.com/dm54
"There's no such thing as can't. You always have a choice."

Reply via email to