Browse Source

New targets for fixing two checkstyle errors:

- fixTS:  deletes trailing spaces
- fixTab: converts TABs to 4 spaces

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@394275 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 19 years ago
parent
commit
7b378fdc4d
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      check.xml

+ 16
- 0
check.xml View File

@@ -85,5 +85,21 @@
<fileset dir="${java.dir}" />
</simian>
</target>
<target name="fixTS" description="fix error 'Line has trailing spaces'">
<fail message="Define path to java file 'path'">
<condition><not><isset property="path"/></not></condition>
</fail>
<replaceregexp match="\s+$" replace="" flags="g" byline="true">
<fileset dir="src/main" includes="${path}"/>
</replaceregexp>
</target>

<target name="fixTab" description="fix error 'Line contains TAB sign'">
<fail message="Define path to java file 'path'">
<condition><not><isset property="path"/></not></condition>
</fail>
<fixcrlf srcdir="src/main" includes="${path}" javafiles="yes" tab="remove" tablength="4"/>
</target>
</project>

Loading…
Cancel
Save