[hibernate-dev] Checkstyle and ORM
hardy at hibernate.org
Tue May 19 10:33:43 EDT 2015
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
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 496 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/hibernate-dev/attachments/20150519/363fe85c/attachment-0001.bin
More information about the hibernate-dev