public final class ClassPathProviderImpl extends AbstractClassPathProvider
Modifier and Type | Class and Description |
---|---|
static class |
ClassPathProviderImpl.Builder
Builder to create ClassPathProviderImpl.
|
AbstractClassPathProvider.ClassPathsChangeEvent, AbstractClassPathProvider.ClassPathsChangeListener
Constructor and Description |
---|
ClassPathProviderImpl(AntProjectHelper helper,
PropertyEvaluator evaluator,
SourceRoots sourceRoots,
SourceRoots testSourceRoots) |
ClassPathProviderImpl(AntProjectHelper helper,
PropertyEvaluator evaluator,
SourceRoots sourceRoots,
SourceRoots testSourceRoots,
String buildClassesDir,
String distJar,
String buildTestClassesDir,
String[] javacClasspath,
String[] javacTestClasspath,
String[] runClasspath,
String[] runTestClasspath) |
ClassPathProviderImpl(AntProjectHelper helper,
PropertyEvaluator evaluator,
SourceRoots sourceRoots,
SourceRoots testSourceRoots,
String buildClassesDir,
String distJar,
String buildTestClassesDir,
String[] javacClasspath,
String[] javacTestClasspath,
String[] runClasspath,
String[] runTestClasspath,
String[] endorsedClasspath)
Constructor allowing customization of endorsedClasspath property names.
|
ClassPathProviderImpl(AntProjectHelper helper,
PropertyEvaluator evaluator,
SourceRoots sourceRoots,
SourceRoots testSourceRoots,
String buildClassesDir,
String distJar,
String buildTestClassesDir,
String[] javacClasspath,
String[] processorPath,
String[] javacTestClasspath,
String[] runClasspath,
String[] runTestClasspath,
String[] endorsedClasspath)
Constructor allowing customization of processorPath.
|
Modifier and Type | Method and Description |
---|---|
ClassPath |
findClassPath(FileObject file,
String type) |
ClassPath[] |
getProjectClassPaths(String type)
Returns array of all classpaths of the given type in the project.
|
ClassPath |
getProjectSourcesClassPath(String type)
Returns the given type of the classpath for the project sources
(i.e., excluding tests roots).
|
String[] |
getPropertyName(SourceGroup sg,
String type)
Returns the names of path properties storing the path type for given
SourceGroup . |
String[] |
getPropertyName(SourceRoots roots,
String type) |
addClassPathsChangeListener, fireClassPathsChange, removeClassPathsChangeListener
public ClassPathProviderImpl(AntProjectHelper helper, PropertyEvaluator evaluator, SourceRoots sourceRoots, SourceRoots testSourceRoots)
public ClassPathProviderImpl(AntProjectHelper helper, PropertyEvaluator evaluator, SourceRoots sourceRoots, SourceRoots testSourceRoots, String buildClassesDir, String distJar, String buildTestClassesDir, String[] javacClasspath, String[] javacTestClasspath, String[] runClasspath, String[] runTestClasspath)
public ClassPathProviderImpl(AntProjectHelper helper, PropertyEvaluator evaluator, SourceRoots sourceRoots, SourceRoots testSourceRoots, String buildClassesDir, String distJar, String buildTestClassesDir, String[] javacClasspath, String[] javacTestClasspath, String[] runClasspath, String[] runTestClasspath, String[] endorsedClasspath)
public ClassPathProviderImpl(AntProjectHelper helper, PropertyEvaluator evaluator, SourceRoots sourceRoots, SourceRoots testSourceRoots, String buildClassesDir, String distJar, String buildTestClassesDir, String[] javacClasspath, String[] processorPath, String[] javacTestClasspath, String[] runClasspath, String[] runTestClasspath, String[] endorsedClasspath)
public ClassPath findClassPath(FileObject file, String type)
public ClassPath[] getProjectClassPaths(String type)
getProjectClassPaths
in class AbstractClassPathProvider
type
- the ClassPath
typeClassPath
spublic ClassPath getProjectSourcesClassPath(String type)
public String[] getPropertyName(SourceRoots roots, String type)
public String[] getPropertyName(SourceGroup sg, String type)
AbstractClassPathProvider
SourceGroup
.getPropertyName
in class AbstractClassPathProvider
sg
- the SourceGroup
to return the properties fortype
- the ClassPath
typeSourceGroup
is unknown.