Class DefaultMavenFileFilter
java.lang.Object
org.apache.maven.shared.filtering.DefaultMavenFileFilter
- All Implemented Interfaces:
DefaultFilterInfo,MavenFileFilter
- Author:
- Olivier Lamy
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMavenFileFilter(org.sonatype.plexus.build.incremental.BuildContext buildContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFile(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String encoding) 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) getDefaultFilterWrappers(org.apache.maven.api.Project mavenProject, List<String> filters, boolean escapedBackslashesInFilePath, org.apache.maven.api.Session mavenSession, MavenResourcesExecution mavenResourcesExecution) protected org.slf4j.LoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.shared.filtering.DefaultFilterInfo
getDefaultFilterWrappers, getDefaultFilterWrappers
-
Constructor Details
-
DefaultMavenFileFilter
@Inject public DefaultMavenFileFilter(org.sonatype.plexus.build.incremental.BuildContext buildContext)
-
-
Method Details
-
copyFile
public 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 Description copied from interface:MavenFileFilterWill copy a file with some filtering using defaultFilterWrappers.- Specified by:
copyFilein interfaceMavenFileFilter- 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
public void copyFile(Path from, Path to, boolean filtering, List<FilterWrapper> filterWrappers, String encoding) throws MavenFilteringException - Specified by:
copyFilein interfaceMavenFileFilter- 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.
-
getLogger
protected org.slf4j.Logger getLogger()
-