summaryrefslogtreecommitdiffstats
path: root/etc/targets/global-checkstyle.xml
blob: 5c15352d02885512ef6e444da0b764ef68a529d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>