mirror of https://github.com/apache/cassandra
Switch checkstyle to j11.
Patch by brandonwilliams; reviewed by edimitrova for CASSANDRA-18262
This commit is contained in:
parent
6d62d2f4f2
commit
4e3447ae17
|
|
@ -1948,7 +1948,7 @@
|
||||||
classpathref="checkstyle.lib.path"/>
|
classpathref="checkstyle.lib.path"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="checkstyle" depends="init-checkstyle,build-project" description="Run custom checkstyle code analysis" if="java.version.8" unless="no-checkstyle">
|
<target name="checkstyle" depends="init-checkstyle,build-project" description="Run custom checkstyle code analysis" if="java.version.11" unless="no-checkstyle">
|
||||||
<property name="checkstyle.log.dir" value="${build.dir}/checkstyle" />
|
<property name="checkstyle.log.dir" value="${build.dir}/checkstyle" />
|
||||||
<property name="checkstyle.report.file" value="${checkstyle.log.dir}/checkstyle_report.xml"/>
|
<property name="checkstyle.report.file" value="${checkstyle.log.dir}/checkstyle_report.xml"/>
|
||||||
<mkdir dir="${checkstyle.log.dir}" />
|
<mkdir dir="${checkstyle.log.dir}" />
|
||||||
|
|
@ -1964,7 +1964,7 @@
|
||||||
</checkstyle>
|
</checkstyle>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="checkstyle-test" depends="init-checkstyle,resolver-retrieve-build,build-project" description="Run custom checkstyle code analysis on tests" if="java.version.8" unless="no-checkstyle">
|
<target name="checkstyle-test" depends="init-checkstyle,resolver-retrieve-build,build-project" description="Run custom checkstyle code analysis on tests" if="java.version.11" unless="no-checkstyle">
|
||||||
<property name="checkstyle.log.dir" value="${build.dir}/checkstyle" />
|
<property name="checkstyle.log.dir" value="${build.dir}/checkstyle" />
|
||||||
<property name="checkstyle_test.report.file" value="${checkstyle.log.dir}/checkstyle_report_test.xml"/>
|
<property name="checkstyle_test.report.file" value="${checkstyle.log.dir}/checkstyle_report_test.xml"/>
|
||||||
<mkdir dir="${checkstyle.log.dir}" />
|
<mkdir dir="${checkstyle.log.dir}" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue