public class DirBasedSources extends BaseSources
Script file extensions and whether to also scan subdirectories is configurable.
The implementation is basic, but may still be good enough for many use cases in practice: Invisible files, as well as invisible or unlistable directories, are ignored; no attempts are made to detect symlinks.
Modifier and Type | Class and Description |
---|---|
static class |
DirBasedSources.Builder
Builder for instances of
DirBasedSources . |
Modifier | Constructor and Description |
---|---|
protected |
DirBasedSources(DirBasedSources.Builder builder)
constructor from builder.
|
Modifier and Type | Method and Description |
---|---|
DirBasedSources.Builder |
getBuilder()
gets the builder.
|
File |
getDir()
gets the script file directory.
|
DirMode |
getDirMode()
gets the dir mode.
|
Set<String> |
getScriptExtensions()
gets the set of script extensions.
|
protected Set<Source> |
getSourceSetNew()
gets the updated source set.
|
getCompilerFactory, getLastModified, getName, getSourceSet, init, toString
protected DirBasedSources(DirBasedSources.Builder builder)
builder
- builderprotected Set<Source> getSourceSetNew()
getSourceSetNew
in class BaseSources
public File getDir()
public DirMode getDirMode()
public Set<String> getScriptExtensions()
public DirBasedSources.Builder getBuilder()