find . -name "*.java" -print0 | xargs -0 gsed -i.bak -e '
/Hibernate, Relational Persistence/,/USA/ c\
* Hibernate Search, full-text search for your domain model\
*\
* License: GNU Lesser General Public License (LGPL), version 2.1 or later\
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.'
find . -name "*.java" -print0 | xargs -0 gsed -i.bak -e '
/JBoss, Home of Professional Open Source/,/USA/ c\
* Hibernate Search, full-text search for your domain model\
*\
* License: GNU Lesser General Public License (LGPL), version 2.1 or later\
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.'
find . -name "*.xml" -print0 | xargs -0 gsed -i.bak -e '
/Hibernate, Relational Persistence/,/USA/ c\
~ Hibernate Search, full-text search for your domain model\
~\
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later\
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
Gunnar Morling, thanks for the tip with the license plugin. For the conversion sed worked fine and I am not sure whether we need another verification plugin on top of checkstyle during build time.