[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionoo/master] Make checkstyle task fail, when new warnings appear.
commit 2b34ca91762818c2003716f284c4b1d53975f658
Author: iwakeh <iwakeh@xxxxxxxxxxxxxx>
Date: Tue Aug 2 16:55:52 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 7cfd870..d1cc58b 100644
--- a/build.xml
+++ b/build.xml
@@ -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"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits