ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r394275 - /ant/core/trunk/check.xml
Date Sat, 15 Apr 2006 10:04:13 GMT
Author: jhm
Date: Sat Apr 15 03:04:10 2006
New Revision: 394275

URL: http://svn.apache.org/viewcvs?rev=394275&view=rev
Log:
New targets for fixing two checkstyle errors:
- fixTS:  deletes trailing spaces
- fixTab: converts TABs to 4 spaces

Modified:
    ant/core/trunk/check.xml

Modified: ant/core/trunk/check.xml
URL: http://svn.apache.org/viewcvs/ant/core/trunk/check.xml?rev=394275&r1=394274&r2=394275&view=diff
==============================================================================
--- ant/core/trunk/check.xml (original)
+++ ant/core/trunk/check.xml Sat Apr 15 03:04:10 2006
@@ -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>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message