Interface MavenFileFilter
- All Superinterfaces:
DefaultFilterInfo
- All Known Implementing Classes:
DefaultMavenFileFilter
- Author:
- Olivier Lamy
-
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFile(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String encoding) Deprecated.default voidcopyFile(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String encoding, boolean gracefulBinaryHandling) voidcopyFile(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String encoding, ChangeDetection changeDetection) voidcopyFile(Path from, Path to, boolean filtering, org.apache.maven.api.Project mavenProject, List<String> filters, boolean escapedBackslashesInFilePath, String encoding, org.apache.maven.api.Session mavenSession) Will copy a file with some filtering using defaultFilterWrappers.voidcopyFile(MavenFileFilterRequest mavenFileFilterRequest) booleancopyFileWithResult(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String inputEncoding, String outputEncoding, ChangeDetection changeDetection) Copy and optionally filter a file using separate input and output encodings.booleancopyFileWithResult(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String encoding, ChangeDetection changeDetection) Copies (or filters) a file and returns whether the destination was actually written.Methods inherited from interface DefaultFilterInfo
getDefaultFilterWrappers, getDefaultFilterWrappers
-
Method Details
-
copyFile
void copyFile(Path from, Path to, boolean filtering, org.apache.maven.api.Project mavenProject, List<String> filters, boolean escapedBackslashesInFilePath, String encoding, org.apache.maven.api.Session mavenSession) throws MavenFilteringException Will copy a file with some filtering using defaultFilterWrappers.- Parameters:
from- file to copy/filterto- destination filefiltering- enable or not filteringmavenProject-Projectfilters-Listof String which are path to a Property fileescapedBackslashesInFilePath- escape backslashes in file path.encoding- The encoding which is used during the filtering process.mavenSession-Session- Throws:
MavenFilteringException- in case of failure.- See Also:
-
copyFile
@Deprecated void copyFile(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String encoding) throws MavenFilteringException Deprecated.- Parameters:
from- The source fileto- The target filefiltering- true to apply filteringfilterWrappers-Listof FileUtils.FilterWrapperencoding- The encoding used during the filtering.- Throws:
MavenFilteringException- In case of an error.
-
copyFile
default void copyFile(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String encoding, boolean gracefulBinaryHandling) throws MavenFilteringException - Parameters:
from- The source fileto- The target filefiltering- true to apply filteringfilterWrappers-Listof FileUtils.FilterWrapperencoding- The encoding used during the filtering.gracefulBinaryHandling- whentrue, files that causeMalformedInputExceptionare copied as-is with a warning instead of failing the build- Throws:
MavenFilteringException- In case of an error.- Since:
- 3.4.0
-
copyFile(Path, Path, boolean, List, String, ChangeDetection)instead