diff options
Diffstat (limited to 'etc/targets/global-checkstyle.xml')
-rw-r--r-- | etc/targets/global-checkstyle.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/targets/global-checkstyle.xml b/etc/targets/global-checkstyle.xml new file mode 100644 index 0000000..5c15352 --- /dev/null +++ b/etc/targets/global-checkstyle.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project name="global-checkstyle" basedir="."> + + <target name="global-checkstyle" depends="global-vpp" + unless="test.no.checkstyle"> + + <mkdir dir="${global.dir.build.reports}" /> + + <!-- XXX: Stupid checkstyle task doesn't expand it's parameters --> + <checkstyle config="etc/checkstyle/config.xml" + failOnViolation="false"> + <classpath refid="checkstyle-classpath" /> + <fileset dir="${global.dir.build.java}" /> + <formatter type="xml" + toFile="${global.dir.build.reports}/checkstyle.xml" /> + <formatter type="plain" + toFile="${global.dir.build.reports}/checkstyle.txt" /> + </checkstyle> + + </target> + +</project> |