-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #915: convert maven-checkstyle-plugin to ant
- Loading branch information
Showing
5 changed files
with
127 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?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 resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"/> | ||
|
||
<property name="check.config" location="sevntu-checks.xml"/> | ||
|
||
<tstamp> | ||
<format property="STARTED" pattern="dd/MM/yyyy hh:mm:ss aa" /> | ||
</tstamp> | ||
<echo level="info">Checkstyle started (${check.config}): ${STARTED}</echo> | ||
|
||
<checkstyle config="${check.config}" | ||
failOnViolation="false" | ||
failureProperty="checkstyle.failure.property" | ||
executeIgnoredModules="true" | ||
> | ||
<fileset dir="src" | ||
includes="**/*" | ||
excludes="test/resources/**/*,test/resources-noncompilable/**/*"/> | ||
<formatter type="plain"/> | ||
<formatter type="xml" toFile="${mvn.project.build.directory}/cs_sevntu_errors.xml"/> | ||
</checkstyle> | ||
|
||
<tstamp> | ||
<format property="FINISHED" pattern="dd/MM/yyyy hh:mm:ss aa"/> | ||
</tstamp> | ||
<echo level="info">Checkstyle finished (${check.config}) : ${FINISHED}</echo> | ||
|
||
<fail if="checkstyle.failure.property" | ||
message="Checkstyle failed: ${checkstyle.failure.property}" | ||
/> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?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 resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"/> | ||
|
||
<tstamp> | ||
<format property="STARTED" pattern="dd/MM/yyyy hh:mm:ss aa" /> | ||
</tstamp> | ||
<echo level="info">Checkstyle started (${checkstyle.configLocation}): ${STARTED}</echo> | ||
|
||
<checkstyle config="${checkstyle.configLocation}" | ||
failOnViolation="false" | ||
failureProperty="checkstyle.failure.property" | ||
executeIgnoredModules="true" | ||
> | ||
<fileset dir="src" | ||
includes="**/*" | ||
excludes="test/resources/**/*,test/resources-noncompilable/**/*"/> | ||
<formatter type="plain"/> | ||
<formatter type="xml" toFile="${mvn.project.build.directory}/cs_errors.xml"/> | ||
<property key="checkstyle.cache.file" file="${mvn.project.build.directory}/cachefile"/> | ||
<property key="checkstyle.header.file" value="${checkstyle.header}"/> | ||
<property key="checkstyle.regexp.header.file" value="${checkstyle.regexp.header}"/> | ||
<property key="checkstyle.importcontrol.file" file="import-control.xml"/> | ||
<property key="checkstyle.importcontroltest.file" file="import-control-test.xml"/> | ||
<property key="checkstyle.suppressions.file" file="suppressions.xml"/> | ||
<property key="checkstyle.suppressions-xpath.file" file="suppressions.xml"/> | ||
</checkstyle> | ||
|
||
<tstamp> | ||
<format property="FINISHED" pattern="dd/MM/yyyy hh:mm:ss aa"/> | ||
</tstamp> | ||
<echo level="info">Checkstyle finished (${checkstyle.configLocation}) : ${FINISHED}</echo> | ||
|
||
<fail if="checkstyle.failure.property" | ||
message="Checkstyle failed: ${checkstyle.failure.property}" | ||
/> | ||
</target> | ||
</project> |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters