On Mon, May 18, 2015 at 03:07:08PM -0500, Steve Ebersole wrote:
> Hardy, do you happen to still have your sed script for updating these file
> headers?

I do, they are attached to the JIRA issue - 
https://hibernate.atlassian.net/browse/HV-926.
You will need to adjust them to your needs. I used find and xargs to pass the 
files
to sed, then I use two regular expressions to define the start and range of the 
replace "c"
command. The first regular expression matches the first line of the license 
header and the 
second the last. Since Validator already had a consistent license header, I 
only needed one
single sed command. If the license headers currently used in ORM differ a lot 
you might have 
to run multiple.

As Gunnar pointed out to me, there is maven-license-plugin which also has a 
Gradle
"port" - https://github.com/hierynomus/license-gradle-plugin. I have no 
experience with
either plugin though. 

--Hardy

Attachment: pgpht7WG2IRT5.pgp
Description: PGP signature

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to