[tor-commits] [metrics-web/master] Make checkstyle fail, when new warnings appear.
karsten at torproject.org
karsten at torproject.org
Tue Aug 2 18:11:54 UTC 2016
commit 4f4ba2ea6aca62945179ba92ee8d9ab8a372bbb8
Author: iwakeh <iwakeh at torproject.org>
Date: Tue Aug 2 16:47:05 2016 +0200
Make checkstyle fail, when new warnings appear.
---
shared/build.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/shared/build.xml b/shared/build.xml
index ae4d292..13a09f7 100644
--- a/shared/build.xml
+++ b/shared/build.xml
@@ -34,6 +34,17 @@
</classpath>
<formatter type="plain" toFile="${report}" />
</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>
</project>
More information about the tor-commits
mailing list