This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch MCHECKSTYLE-54
in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git


The following commit(s) were added to refs/heads/MCHECKSTYLE-54 by this push:
     new e4bc3a5  [MCHECKSTYLE-54] adjust all java sourcefiles
e4bc3a5 is described below

commit e4bc3a5c6a2ba73385e5229a21d3045e96fced7d
Author: rfscholte <rfscho...@apache.org>
AuthorDate: Sat Jun 8 18:19:02 2019 +0200

    [MCHECKSTYLE-54] adjust all java sourcefiles
---
 src/it/MCHECKSTYLE-54/setup.groovy | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/it/MCHECKSTYLE-54/setup.groovy 
b/src/it/MCHECKSTYLE-54/setup.groovy
index 0528749..d9447ec 100644
--- a/src/it/MCHECKSTYLE-54/setup.groovy
+++ b/src/it/MCHECKSTYLE-54/setup.groovy
@@ -17,8 +17,9 @@
  * under the License.
  */
 
-def srcFile = new File(basedir, 
'src/main/java/org/apache/maven/plugins/checkstyle/mcheckstyle54/Mcheckstyle54.java')
-
-srcFile.text = srcFile.text.replaceAll( ~ /(\r\n|\r|\n)/, 
System.lineSeparator() )
+def srcDir = new File(basedir, 'src/main/java')
 
+srcDir.eachFileRecurse (groovy.io.FileType.FILES) { 
+    it.text.replaceAll( ~ /(\r\n|\r|\n)/, System.lineSeparator() )
+}
 return true;
\ No newline at end of file

Reply via email to