commit 7ee3038e0c681b32f7f377e7ac976cf14c8a197b Author: iwakeh iwakeh@torproject.org Date: Tue Aug 2 16:51:02 2016 +0200
Make checkstyle task fail, when new warnings appear. --- build.xml | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/build.xml b/build.xml index 5e08766..e581578 100644 --- a/build.xml +++ b/build.xml @@ -170,6 +170,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="jar" depends="compile,docs">
tor-commits@lists.torproject.org