6978974: [langtools] <findbugs> task should use ${target.java.home}

Reviewed-by: mcimadamore
This commit is contained in:
Jonathan Gibbons 2010-09-13 11:40:58 -07:00
parent 0d2b8790d3
commit e3c7ca0c53

View File

@ -275,6 +275,7 @@
failOnError="false"
errorProperty="findbugs.all.errors"
warningsProperty="findbugs.all.warnings"
jvm="${target.java.home}/bin/java"
jvmargs="-Xmx512M">
<class location="${build.classes.dir}"/>
<sourcePath>
@ -938,7 +939,8 @@
<taskdef classpathref="cobertura.classpath" resource="tasks.properties"/>
</target>
<target name="-def-findbugs" unless="findbugs.defined" depends="-check-findbugs.home">
<target name="-def-findbugs" unless="findbugs.defined"
depends="-check-findbugs.home,-check-target.java.home">
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask">
<classpath>
<pathelement location="${findbugs.home}/lib/findbugs.jar"/>
@ -958,6 +960,7 @@
failOnError="false"
errorProperty="findbugs.@{name}.errors"
warningsProperty="findbugs.@{name}.warnings"
jvm="${target.java.home}/bin/java"
jvmargs="-Xmx512M" >
<class location="${dist.dir}/lib/@{name}.jar"/>
<auxClasspath>