Commit 89379f69 authored by iwakeh's avatar iwakeh 🌴
Browse files

Make checkstyle task fail, when new warnings appear.

parent 25482439
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -184,6 +184,17 @@
      <formatter type="plain"
                 toFile="${generated}/checkstyle_report.txt"/>
    </checkstyle>
    <exec executable="cat" outputproperty="checkstyle.result">
      <arg value="${generated}/checkstyle_report.txt" />
    </exec>
    <fail message="Checkstyle complaints: ${checkstyle.result}" >
      <condition>
        <not>
          <length string="${checkstyle.result}"
                  length="29" />
        </not>
      </condition>
    </fail>
  </target>

  <target name="war"