public static final class ClassPathProviderImpl.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ClassPathProviderImpl |
build()
Creates a configured
ClassPathProviderImpl . |
static ClassPathProviderImpl.Builder |
create(AntProjectHelper helper,
PropertyEvaluator evaluator,
SourceRoots sourceRoots,
SourceRoots testSourceRoots) |
ClassPathProviderImpl.Builder |
setBootClasspathProperties(String... bootClasspathProperties)
Sets boot classpath properties.
|
ClassPathProviderImpl.Builder |
setBuildClassesDirProperty(String buildClassesDirProperty)
Sets a property name containing build classes directory.
|
ClassPathProviderImpl.Builder |
setBuildTestClassesDirProperty(String buildTestClassesDirProperty)
Sets a property name containing build test classes directory.
|
ClassPathProviderImpl.Builder |
setDistJarProperty(String distJarProperty)
Sets a property name containing the distribution jar.
|
ClassPathProviderImpl.Builder |
setEndorsedClasspathProperties(String[] endorsedClasspathProperties)
Sets endorsed classpath properties.
|
ClassPathProviderImpl.Builder |
setJavacClassPathProperties(String[] javacClassPathProperties)
Sets javac classpath properties for source roots.
|
ClassPathProviderImpl.Builder |
setJavacSourceProperty(String javacSource)
Sets javac source level property.
|
ClassPathProviderImpl.Builder |
setJavacTestClasspathProperties(String[] javacTestClasspathProperties)
Sets javac classpath properties for test roots.
|
ClassPathProviderImpl.Builder |
setModulepathProperties(String[] modulePathProperties)
Sets module path properties.
|
ClassPathProviderImpl.Builder |
setPlatformType(String platformType)
Sets a
JavaPlatform type for boot classpath lookup. |
ClassPathProviderImpl.Builder |
setProcessorModulepathProperties(String[] processorModulePathProperties)
Sets module path properties.
|
ClassPathProviderImpl.Builder |
setProcessorPathProperties(String[] processorPathProperties)
Sets javac processor path properties for source roots.
|
ClassPathProviderImpl.Builder |
setProject(Project project)
Sets the owner project.
|
ClassPathProviderImpl.Builder |
setRunClasspathProperties(String[] runClasspathProperties)
Sets runtime classpath properties for source roots.
|
ClassPathProviderImpl.Builder |
setRunModulepathProperties(String[] modulePathProperties)
Sets runtime module path properties.
|
ClassPathProviderImpl.Builder |
setRunTestClasspathProperties(String[] runTestClasspathProperties)
Sets runtime classpath properties for test roots.
|
ClassPathProviderImpl.Builder |
setRunTestModulepathProperties(String[] modulePathProperties)
Sets test runtime module path properties.
|
ClassPathProviderImpl.Builder |
setTestModulepathProperties(String[] modulePathProperties)
Sets test module path properties.
|
@NonNull public ClassPathProviderImpl.Builder setPlatformType(@NonNull String platformType)
JavaPlatform
type for boot classpath lookup.platformType
- the type of JavaPlatform
, by default "j2se"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setBuildClassesDirProperty(@NonNull String buildClassesDirProperty)
buildClassesDirProperty
- the name of property containing the build classes directory, by default "build.classes.dir"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setBuildTestClassesDirProperty(@NonNull String buildTestClassesDirProperty)
buildTestClassesDirProperty
- the name of property containing the build test classes directory, by default "build.test.classes.dir"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setDistJarProperty(@NonNull String distJarProperty)
distJarProperty
- the name of property containing the distribution jar reference, by default "dist.jar"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setJavacClassPathProperties(@NonNull String[] javacClassPathProperties)
javacClassPathProperties
- the names of properties containing the compiler classpath for sources, by default "javac.classpath"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setProcessorPathProperties(@NonNull String[] processorPathProperties)
processorPathProperties
- the names of properties containing the compiler processor path for sources, by default "javac.processorpath"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setJavacTestClasspathProperties(@NonNull String[] javacTestClasspathProperties)
javacTestClasspathProperties
- the names of properties containing the compiler classpath for tests, by default "javac.test.classpath"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setRunClasspathProperties(@NonNull String[] runClasspathProperties)
runClasspathProperties
- the names of properties containing the runtime classpath for sources, by default "run.classpath"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setRunTestClasspathProperties(@NonNull String[] runTestClasspathProperties)
runTestClasspathProperties
- the names of properties containing the runtime classpath for tests, by default "run.test.classpath"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setEndorsedClasspathProperties(@NonNull String[] endorsedClasspathProperties)
endorsedClasspathProperties
- the names of properties containing the endorsed classpath, by default "endorsed.classpath"ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setModulepathProperties(@NonNull String[] modulePathProperties)
modulePathProperties
- the names of properties containing the module path, by default ProjectProperties.JAVAC_MODULEPATH
ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setTestModulepathProperties(@NonNull String[] modulePathProperties)
modulePathProperties
- the names of properties containing the test module path, by default ProjectProperties.JAVAC_TEST_MODULEPATH
ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setProcessorModulepathProperties(@NonNull String[] processorModulePathProperties)
processorModulePathProperties
- the names of properties containing the processor module path, by default ProjectProperties.JAVAC_PROCESSORMODULEPATH
ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setRunModulepathProperties(@NonNull String[] modulePathProperties)
modulePathProperties
- the names of properties containing the runtime module path, by default ProjectProperties.RUN_MODULEPATH
ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setRunTestModulepathProperties(@NonNull String[] modulePathProperties)
modulePathProperties
- the names of properties containing the test runtime module path, by default ProjectProperties.RUN_TEST_MODULEPATH
ClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setBootClasspathProperties(@NonNull String... bootClasspathProperties)
JavaPlatform.getBootstrapLibraries()
as boot classpath but
have a project property specifying the boot classpath. Setting the boot classpath properties
causes that the Project
's boot classpath is not taken from Project
's JavaPlatform
but from these properties.bootClasspathProperties
- the names of properties containing the boot classpathClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setProject(@NonNull Project project)
project
- the ownerClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl.Builder setJavacSourceProperty(@NonNull String javacSource)
javacSource
- the name of the property containing the javac source levelClassPathProviderImpl.Builder
@NonNull public ClassPathProviderImpl build()
ClassPathProviderImpl
.ClassPathProviderImpl
@NonNull public static ClassPathProviderImpl.Builder create(@NonNull AntProjectHelper helper, @NonNull PropertyEvaluator evaluator, @NonNull SourceRoots sourceRoots, @NonNull SourceRoots testSourceRoots)