I found this plug-in http://code.google.com/p/maven-license-plugin/ (Apache 
License 2), that perfectly matches our requirement. 
It can check if header is missing in some source file, add headers if missing, 
remove existing header ...

Already embedded it into Wink build process [WINK-41] - currently ASF legal 
header will be validated during each maven install phase. 
Once we have Hudson up and running, we should configure (by using maven 
profiles) this plug-in to run only during release build

--martin


-----Original Message-----
From: Snitkovsky, Martin 
Sent: Sunday, July 05, 2009 1:32 PM
To: 'Jason Dillon'; [email protected]
Subject: RE: These new files are missing legal headers

I guess Wink is not the first project that requires legal headers validation, 
anyone can suggest which plug-in should be used?    

-martin
 
-----Original Message-----
From: Jason Dillon [mailto:[email protected]] On Behalf Of Jason Dillon
Sent: Sunday, July 05, 2009 10:28 AM
To: [email protected]
Subject: Re: These new files are missing legal headers

Um, yes and no... :-P  There are tools to check for valid legal files  
and headers, I think there are some plugins that have popped up in the  
recent months to apply headers, but... IMO its just easier to use a  
plugin to check that headers are valid and bitch if they are not.

--jason


On Jul 5, 2009, at 2:16 PM, Michael Elman wrote:

> Hi Jason,
>
> is there any automatic way to apply legal headers in maven?
>
> On Fri, Jul 3, 2009 at 7:46 AM, Jason Dillon <[email protected]>  
> wrote:
>
>>
>> wink-component-test-support/src/main/java/org/apache/wink/test/mock/ 
>> TestUtils.java
>>
>> wink-examples/ext/History/src/test/resources/org/apache/wink/ 
>> example/history/history.properties
>>
>> wink-server/src/test/java/org/apache/wink/server/internal/ 
>> activation/ActivationDataContentHandlerTest.java
>>
>> wink-server/src/test/resources/org/apache/wink/server/internal/ 
>> CustomLocationHeaderConfigurationTest.properties
>>
>> wink-server/src/test/resources/org/apache/wink/server/internal/ 
>> registry/FindResourceMethodTest2.properties
>>
>> --jason
>>

Reply via email to