public class DiscoverSourceDirectories extends 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.
|
List<String> |
getDiscoveredSourceDirectoryList()
Get the list of discovered source directories.
|
static void |
main(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(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.)
|
public void setProject(Project project)
project - Project for which we want to find source directoriespublic void setRootSourceDirectory(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 List<String> getDiscoveredSourceDirectoryList()
public void execute()
throws CheckedAnalysisException,
IOException,
InterruptedException
public static void main(String[] args) throws IOException, CheckedAnalysisException, InterruptedException
Copyright © 2003–2015. All rights reserved.