Interface MavenResourcesFiltering
- All Known Implementing Classes:
DefaultMavenResourcesFiltering
public interface MavenResourcesFiltering
- Author:
- Olivier Lamy
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfilteredFileExtension(String fileName, List<String> userNonFilteredFileExtensions) voidfilterResources(MavenResourcesExecution mavenResourcesExecution) return the List of the non filtered extensions.
-
Method Details
-
getDefaultNonFilteredFileExtensions
return the List of the non filtered extensions. By default this includes common binary formats: images (jpg, jpeg, gif, bmp, png, ico, webp, tif, tiff), Java archives and native libraries (jar, war, ear, aar, rar, jnilib, so, dll, dylib), generic archives (zip, gz, bz2, xz, zst, 7z, tar), executables (exe, bin, class), documents (pdf, doc, docx, xls, xlsx, ppt, pptx), audio/video (mp3, mp4, ogg, wav, avi, mov, flv, swf) and fonts (ttf, otf, woff, woff2, eot). -
filteredFileExtension
- Parameters:
fileName- the file nameuserNonFilteredFileExtensions- an extra list of file extensions- Returns:
- true if filtering can be applied to the file (means extensions.lowerCase is in the default List or in the user defined extension List)
-