mirror of https://github.com/apache/ant-ivy
Merge rat-report targets from build.xml and build-release.xml: Hudson must not fail on failing RAT report, because it would skip the publishing of that report.
git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@962417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6433f9094c
commit
fbca71c5bd
26
build.xml
26
build.xml
|
|
@ -579,32 +579,6 @@
|
|||
<param name="basedir" expression="${checkstyle.basedir}" />
|
||||
</xslt>
|
||||
</target>
|
||||
|
||||
<target name="rat" description="runs the ReleaseAuditingTool" depends="init-ivy">
|
||||
<property name="rat.report.dir"
|
||||
value="${reports.dir}/rat"
|
||||
description="Where to store the RAT reports"/>
|
||||
<property name="rat.report.file"
|
||||
value="${rat.report.dir}/report.html"
|
||||
description="RAT-Report file"/>
|
||||
<property name="rat.version"
|
||||
value="0.6"
|
||||
description="Which Version of RAT to use"/>
|
||||
<ivy:cachepath organisation="org.apache.rat" module="apache-rat-tasks" revision="${rat.version}"
|
||||
inline="true" conf="default" pathid="rat.classpath" transitive="true"/>
|
||||
<typedef resource="org/apache/rat/anttasks/antlib.xml"
|
||||
uri="antlib:org.apache.rat.anttasks"
|
||||
classpathref="rat.classpath"/>
|
||||
<mkdir dir="${rat.report.dir}"/>
|
||||
<rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportfile="${rat.report.dir}/report.txt">
|
||||
<fileset dir="${src.dir}">
|
||||
<include name="**/*.java" />
|
||||
</fileset>
|
||||
<fileset dir="${example.dir}">
|
||||
<include name="**/*.java" />
|
||||
</fileset>
|
||||
</rat:report>
|
||||
</target>
|
||||
|
||||
<target name="init-findbugs" unless="findbugs.home">
|
||||
<!-- Findbugs: Getting Findbugs -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue