[PATCH 2 of 2] Checkstyle: define header inline

Wald Commits scm-commit at wald.intevation.org
Mon Jan 22 17:02:58 CET 2018


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1516636946 -3600
# Branch 3.2.x
# Node ID de423c2a3c1b8f1b559282b23ff150a6260744f6
# Parent  f5fa2467f9c063217ee0d568c6aadbd2838b685b
Checkstyle: define header inline.

diff -r f5fa2467f9c0 -r de423c2a3c1b checkstyle.xml
--- a/checkstyle.xml	Mon Jan 22 16:59:03 2018 +0100
+++ b/checkstyle.xml	Mon Jan 22 17:02:26 2018 +0100
@@ -17,8 +17,9 @@
 
   <!-- Following interprets the header file as regular expressions. -->
   <module name="RegexpHeader">
-    <property name="headerFile" value="../java.header"/>
     <property name="fileExtensions" value="java"/>
+    <property name="header"
+              value="^/\* Copyright \(C\) .* by Bundesanstalt für Gewässerkunde$\n^ \* Software engineering by .*$\n^ \*$\n^ \* This file is Free Software under the GNU AGPL \(>=v3\)$\n^ \* and comes with ABSOLUTELY NO WARRANTY! Check out the$\n^ \* documentation coming with Dive4Elements River for details.$\n^ \*/$"/>
   </module>
 
   <module name="FileTabCharacter">
diff -r f5fa2467f9c0 -r de423c2a3c1b java.header
--- a/java.header	Mon Jan 22 16:59:03 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-^/\* Copyright \(C\) .* by Bundesanstalt für Gewässerkunde$
-^ \* Software engineering by .*$
-^ \*$
-^ \* This file is Free Software under the GNU AGPL \(>=v3\)$
-^ \* and comes with ABSOLUTELY NO WARRANTY! Check out the$
-^ \* documentation coming with Dive4Elements River for details.$
-^ \*/$


More information about the Dive4Elements-commits mailing list