Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:GA
findbugs
findbugs-ant-task-classpath.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File findbugs-ant-task-classpath.patch of Package findbugs
diff --git a/src/antTask/edu/umd/cs/findbugs/anttask/AbstractFindBugsTask.java b/src/antTask/edu/umd/cs/findbugs/anttask/AbstractFindBugsTask.java index 70af8ef..4919d09 100644 --- a/src/antTask/edu/umd/cs/findbugs/anttask/AbstractFindBugsTask.java +++ b/src/antTask/edu/umd/cs/findbugs/anttask/AbstractFindBugsTask.java @@ -28,6 +28,7 @@ import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Task; import org.apache.tools.ant.taskdefs.Java; import org.apache.tools.ant.types.Path; +import org.apache.tools.ant.types.FileSet; import org.apache.tools.ant.types.Reference; /** @@ -311,7 +312,11 @@ public abstract class AbstractFindBugsTask extends Task { File findbugsLibFindBugs = new File(findbugsLib, "findbugs.jar"); // log("executing using home dir [" + homeDir + "]"); if (findbugsLibFindBugs.exists()) { - findbugsEngine.setClasspath(new Path(getProject(), findbugsLibFindBugs.getPath())); + FileSet findbugsLibFileSet = new FileSet(); + findbugsLibFileSet.setProject(getProject()); + findbugsLibFileSet.setDir(findbugsLib); + findbugsLibFileSet.setIncludes("*.jar"); + findbugsEngine.createClasspath().addFileset(findbugsLibFileSet); } else { throw new IllegalArgumentException("Can't find findbugs.jar in " + findbugsLib); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor