Permalink
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (42 sloc) 1.92 KB
<?xml version="1.0" encoding="UTF-8"?>
<project name="phase-package" default="execute">
<condition property="checkstyle.ant.skip">
<isset property="checkstyle.ant.skip" />
</condition>
<target name="execute" unless="checkstyle.ant.skip">
<taskdef name="checkstyle"
classname="com.puppycrawl.tools.checkstyle.ant.CheckstyleAntTask"
classpath="${mvn.runtime_classpath}"
/>
<property name="checkstyle.pattern.todo" value="NOTHingWillMatCH_-"/>
<property name="check.config" location="config/checkstyle_checks.xml"/>
<tstamp>
<format property="STARTED" pattern="dd/MM/yyyy hh:mm:ss aa" />
</tstamp>
<echo>Checkstyle started: ${STARTED}</echo>
<checkstyle config="${check.config}"
failOnViolation="false"
failureProperty="checkstyle.failure.property"
>
<fileset dir="src"
includes="**/*"
excludes="it/resources/**/*,test/resources/**/*,test/resources-noncompilable/**/*"/>
<formatter type="plain"/>
<formatter type="xml" toFile="${mvn.project.build.directory}/cs_errors.xml"/>
<classpath path="${mvn.runtime_classpath}"/>
<property key="checkstyle.cache.file" file="${mvn.project.build.directory}/cachefile"/>
<property key="checkstyle.header.file" file="config/java.header"/>
<property key="checkstyle.regexp.header.file" file="config/java_regexp.header"/>
<property key="checkstyle.importcontrol.file" file="config/import-control.xml"/>
<property key="checkstyle.suppressions.file"
file="config/suppressions.xml"/>
</checkstyle>
<tstamp>
<format property="FINISHED" pattern="dd/MM/yyyy hh:mm:ss aa" />
</tstamp>
<echo>Checkstyle finished: ${FINISHED}</echo>
<fail if="checkstyle.failure.property"
message="Checkstyle failed: ${checkstyle.failure.property}"
/>
</target>
</project>