public class DiscoverSourceDirectories
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
DiscoverSourceDirectories.Progress
Progress callback interface for reporting the progress of source
directory discovery.
|
Constructor and Description |
---|
DiscoverSourceDirectories()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the search for source directories.
|
java.util.List<java.lang.String> |
getDiscoveredSourceDirectoryList()
Get the list of discovered source directories.
|
static void |
main(java.lang.String[] args)
Just for testing.
|
void |
setErrorLogger(IErrorLogger errorLogger)
Set the error logger to use to report errors during scanning.
|
void |
setProgress(DiscoverSourceDirectories.Progress progress)
Set the progress callback to which scanning progress should be reported.
|
void |
setProject(Project project)
Set the Project for which we want to find source directories.
|
void |
setRootSourceDirectory(java.lang.String rootSourceDirectory)
Set the "root" source directory: we expect all of the actual source
directories to be underneath it.
|
void |
setScanForNestedArchives(boolean scanForNestedArchives)
Set whether or not to scan the project for nested archives (i.e., if
there is a WAR or EAR file that contains jar files inside it.) Default is
false.
|
public void setProject(Project project)
project
- Project for which we want to find source directoriespublic void setRootSourceDirectory(java.lang.String rootSourceDirectory)
rootSourceDirectory
- the root source directorypublic void setScanForNestedArchives(boolean scanForNestedArchives)
scanForNestedArchives
- true if nested archives should be scanned, false otherwisepublic void setErrorLogger(IErrorLogger errorLogger)
errorLogger
- error logger to use to report errors during scanningpublic void setProgress(DiscoverSourceDirectories.Progress progress)
progress
- the progress callbackpublic java.util.List<java.lang.String> getDiscoveredSourceDirectoryList()
public void execute() throws CheckedAnalysisException, java.io.IOException, java.lang.InterruptedException
CheckedAnalysisException
java.io.IOException
java.lang.InterruptedException
public static void main(java.lang.String[] args) throws java.io.IOException, CheckedAnalysisException, java.lang.InterruptedException
java.io.IOException
CheckedAnalysisException
java.lang.InterruptedException
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.