Merge branch 'cassandra-3.0' into cassandra-3.11

This commit is contained in:
Sam Tunnicliffe 2021-04-27 11:57:00 +01:00
commit 9449cd3d6e
2 changed files with 18 additions and 4 deletions

View File

@ -33,9 +33,14 @@
</target>
<target name="_build_ratinclude" depends="_rat_init">
<exec executable="git" failifexecutionfails="true" failonerror="true" output="build/.versioned_files">
<exec executable="git" failifexecutionfails="false" failonerror="false" resultproperty="git.success" output="build/.versioned_files">
<arg line="ls-tree -r HEAD --name-only"/>
</exec>
<condition property="rat.skip" value="true">
<not>
<equals arg1="${git.success}" arg2="0"/>
</not>
</condition>
<copy file="build/.versioned_files" tofile="build/.ratinclude">
<filterchain>
<linecontainsregexp>
@ -101,4 +106,15 @@
<target name="write-java-license-headers" unless="without.rat" description="Add missing java license headers">
<antcall target="_write_java_license_headers" />
</target>
<target name="_assert_rat_output">
<fail message="The rat report at build/rat.txt was not generated. Please ensure that the rat-check task is able to run successfully. For dev builds only, touch build/rat.txt to skip this check">
<condition>
<not>
<available file="build/rat.txt" />
</not>
</condition>
</fail>
</target>
</project>

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
@ -1915,8 +1914,7 @@
<delete dir="build/eclipse-classes" />
</target>
<target name="eclipse-warnings" depends="build" description="Run eclipse compiler code analysis">
<target name="eclipse-warnings" depends="build, _assert_rat_output" description="Run eclipse compiler code analysis">
<property name="ecj.log.dir" value="${build.dir}/ecj" />
<property name="ecj.warnings.file" value="${ecj.log.dir}/eclipse_compiler_checks.txt"/>
<mkdir dir="${ecj.log.dir}" />