logo       

Possible v1.1.2 bug: Failing with "Error: The findbugs.home property is not: msg#00065

java.findbugs.general

Subject: Possible v1.1.2 bug: Failing with "Error: The findbugs.home property is not set!"

This is a multi-part message in MIME format.I've been having a problem with exclude files that I'd hoped would be fixed by updating from my current version of FB, 1.1.0. Instead, I have the following:

I just downloaded brand new tars for 1.1.1, and 1.1.2, neither of which I have ever used before today. Enclosed is a build.xml file (a simplified version of my project build.xml), which, when run under either ant 1.6.5, or ant 1.7.0, works just fine if the fb.version property is set to "1.1.1", and fails if it is set to "1.1.2".

I would be happy to describe anything about my environment, if it would be of any help. It's basically Ubuntu Linux, with Sun java.

FINDBUGS_HOME is not set in my env, fwiw.

Hope this helps,
Blake Meike
<project name="FindbugsBug" default="findbugs" basedir=".">
<!-- PROPERTIES -->
<property name="lib.java" value="/usr/local/share/java" />

<property name="log4j.version" value="1.2.14" />
<property name="log4j.home" value="logging-log4j-${log4j.version}" />
<property name="lib.log4j"
value="dw${log4j.home}/dist/lib/log4j-${log4j.version}.jar" />

<property name="wstx.version" value="3.0.1" />
<property name="wstx.home" value="wstx-${wstx.version}" />
<property name="lib.wstx"
value="${wstx.home}/build/wstx-lgpl-${wstx.version}.jar" />

<property name="stax.version" value="1.0.1" />
<property name="stax.home" value="${wstx.home}/lib" />
<property name="lib.stax" value="${stax.home}/stax-api-${stax.version}.jar"
/>

<property name="fb.version" value="1.1.1" />
<property name="fb.home" value="findbugs-${fb.version}" />
<property name="lib.fb" value="${fb.home}/lib/findbugs.jar" />
<property name="ant.fb" value="${fb.home}/lib/findbugs-ant.jar" />


<!-- CLASSPATHS -->
<fileset id="libs" dir="${lib.java}">
<include name="${lib.log4j}" />
<include name="${lib.stax}" />
<include name="${lib.wstx}" />
</fileset>

<!-- Classpath for the application compile -->
<path id="classpath.app.compile">
<fileset refid="libs"/>
</path>


<!-- TASKDEFS -->
<property name="findbugs.home" value="${lib.java}/${fb.home}" />
<taskdef name="findbugs"
classname="edu.umd.cs.findbugs.anttask.FindBugsTask"
classpath="${lib.java}/${ant.fb}" />


<!-- TARGETS -->
<!-- Run static analysis -->
<target name="findbugs">
<findbugs home="${findbugs.home}"
output="text"
excludeFilter="${meta}/fb-exclude.xml"
failOnError="true" >
<auxClasspath refid="classpath.app.compile" />
<sourcePath path="${src}" />
<class location="${build}/${app.name}.jar" />
</findbugs>
</target>
</project>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise