[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Make checkstyle fail, when new warnings appear.
commit 4f4ba2ea6aca62945179ba92ee8d9ab8a372bbb8
Author: iwakeh <iwakeh@xxxxxxxxxxxxxx>
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>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits