Author: rwhitcomb
Date: Thu May  7 16:13:41 2020
New Revision: 1877480

URL: http://svn.apache.org/viewvc?rev=1877480&view=rev
Log:
PIVOT-1032: Echo the style summary report from the build.


Modified:
    pivot/trunk/build.xml

Modified: pivot/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/pivot/trunk/build.xml?rev=1877480&r1=1877479&r2=1877480&view=diff
==============================================================================
--- pivot/trunk/build.xml (original)
+++ pivot/trunk/build.xml Thu May  7 16:13:41 2020
@@ -101,6 +101,8 @@ limitations under the License.
         <entry key="build.time" value="${build_time}"/>
     </propertyfile>
     <property file="build.number"/>
+    <property name="style.errors.log" value="style_errors.log"/>
+    <property name="style.summary.log" value="style_summary.log"/>
 
     <!-- Compiler properties and Test properties have been moved into 
build.properties -->
 
@@ -1067,15 +1069,17 @@ limitations under the License.
                 <include name="**/src/org/**/*.java"/>
                 <include name="**/test/org/**/*.java"/>
             </fileset>
-            <cs:formatter type="plain" toFile="style_errors.log"/>
+            <cs:formatter type="plain" toFile="${style.errors.log}"/>
         </cs:checkstyle>
         <javac srcdir="." includeantruntime="false">
             <include name="StyleErrors.java"/>
         </javac>
-        <java dir="." classname="StyleErrors" fork="true" 
output="style_summary.log" logError="true">
-            <arg value="style_errors.log"/>
+        <java dir="." classname="StyleErrors" fork="true" 
output="${style.summary.log}" outputproperty="style.summary" logError="true">
+            <arg value="${style.errors.log}"/>
         </java>
-        <echo message="Style check results in &quot;style_errors.log&quot; and 
&quot;style_summary.log&quot;"/>
+        <echo message="Style Check Results"/>
+        <echo message="(full report in &quot;${style.errors.log}&quot;, this 
summary also in &quot;${style.summary.log}&quot;)"/>
+        <echo message="${style.summary}"/>
     </target>
 
     <!-- Do the "normal" clean build stuff -->


Reply via email to