ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Way to simplify this task?
Date Fri, 20 Feb 2009 22:57:04 GMT

Perhaps this is more appropriate for the FindBugs forum, but I've found good answers here.
 I'm using Ant 1.6 with FindBugs 1.3.7.  I want to tell FindBugs to include all the JARS within
a certain directory for its classpath, but this isn't working ...

<target name="findBugs" >
        <FindBugs home="${findBugsHome}" output="html" outputFile="${findBugsOutputFile}"
jvmargs="${jvmargs}" projectName="regui" >
            <class location="${build}/${war-file-name}" />
                <auxClasspath path="web/WEB-INF/lib/*.jar" />
                <sourcePath path="${srcDir}/com" />

I get the error

[FindBugs] The following errors occurred during analysis:
 [FindBugs]   Cannot open codebase filesystem:C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar
 [FindBugs] Error opening C:\Temp\Routing_Engine\ui\web\WEB-INF\lib\*.jar
 [FindBugs]       At edu.umd.cs.findbugs.classfile.impl.ZipFileCodeBase.<init>(
 [FindBugs]       At edu.umd.cs.findbugs.classfile.impl.ZipCodeBaseFactory.makeZipCodeBase(
 [FindBugs]       At edu.umd.cs.findbugs.classfile.impl.ClassFactory.createFilesystemCodeBase(
 [FindBugs]       At edu.umd.cs.findbugs.classfile.impl.FilesystemCodeBaseLocator.openCodeBase(
 [FindBugs]       At edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(
 [FindBugs]       At
 [FindBugs]       At edu.umd.cs.findbugs.FindBugs2.buildClassPath(
 [FindBugs]       At edu.umd.cs.findbugs.FindBugs2.execute(
 [FindBugs]       At edu.umd.cs.findbugs.FindBugs.runMain(
 [FindBugs]       At edu.umd.cs.findbugs.FindBugs2.main(

Any ideas what I'm doing wrong?  Do I have to list each JAR file? - Dave

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message