java.lang.Object
org.jooq.FilePattern
A utility class that can traverse a directory structure given some ant-style
 file patterns, or classpath resources.
 
The following algorithm is applied when traversing sources:
- If patternis a valid classpath resource, load the singleSourcefrom there
- If patternis a valid file on the file system, load the singleSourcefrom there
- Match all files on the file system according to pattern(interpreted as an ant-style file pattern), and load all of theSourceitems givensort(). An example pattern issrc/main/resources/**/*.sql
This is INTERNAL API. Please do not use directly as API may change incompatibly.
- Author:
- Lukas Eder
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThe sort algorithm to be applied to directory contents.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
FilePatternpublic FilePattern()
 
- 
- 
Method Details- 
sort
- 
sort
- 
basedir
- 
basedir
- 
pattern
- 
pattern
- 
encoding
- 
encoding
- 
matchesWhether a given path matches the pattern.
- 
collectRetrieve a set ofSourceitems from this pattern.- Throws:
- IOException- if something goes wrong while loading file contents.
 
- 
loadLoad a set ofSourceitems from this pattern.- Throws:
- IOException- if something goes wrong while loading file contents.
 
- 
toString
 
-