]> source.dussan.org Git - poi.git/commitdiff
rat-check - remove clutter to compact build output
authorAndreas Beeker <kiwiwings@apache.org>
Sun, 20 Dec 2015 17:01:46 +0000 (17:01 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sun, 20 Dec 2015 17:01:46 +0000 (17:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1721043 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 21e5a3646cfec5d4e148ea62585972271289b032..ce129d07cb0f2f1d290f9371bffc5ce44bcd6a8b 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1791,7 +1791,17 @@ under the License.
            </fileset>
        </rat:report>
 
-       <loadfile property="rat.reportcontent" srcFile="${rat.report}"/>
+          <!-- remove clutter to compact build output -->
+       <!-- replaceregexp doesn't work within loadfile ... -->
+       <replaceregexp file="${rat.report}" match="\s+Printing headers for files without AL header.++" replace="" flags="s"/>
+       
+       <loadfile property="rat.reportcontent" srcFile="${rat.report}">
+            <filterchain>
+               <linecontainsregexp negate="true">
+                       <regexp pattern="^\s+(AL|B|N)\s+"/>
+               </linecontainsregexp>
+            </filterchain>
+       </loadfile>
        <echo>${rat.reportcontent}</echo>
 
        <!-- fail the build if at least one note is in the report -->