Class DefaultMavenFileFilter
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.shared.filtering.DefaultMavenFileFilter
- All Implemented Interfaces:
DefaultFilterInfo
,MavenFileFilter
,org.codehaus.plexus.logging.LogEnabled
@Component(role=MavenFileFilter.class,
hint="default")
public class DefaultMavenFileFilter
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MavenFileFilter
- Author:
- Olivier Lamy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFile
(File from, File to, boolean filtering, List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers, String encoding) void
copyFile
(File from, File to, boolean filtering, List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers, String encoding, boolean overwrite) void
copyFile
(File from, File to, boolean filtering, org.apache.maven.project.MavenProject mavenProject, List<String> filters, boolean escapedBackslashesInFilePath, String encoding, org.apache.maven.execution.MavenSession mavenSession) Will copy a file with some filtering using defaultFilterWrappers.void
copyFile
(MavenFileFilterRequest mavenFileFilterRequest) List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper>
getDefaultFilterWrappers
(org.apache.maven.project.MavenProject mavenProject, List<String> filters, boolean escapedBackslashesInFilePath, org.apache.maven.execution.MavenSession mavenSession, MavenResourcesExecution mavenResourcesExecution) List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper>
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.shared.filtering.DefaultFilterInfo
getDefaultFilterWrappers, getDefaultFilterWrappers
-
Constructor Details
-
DefaultMavenFileFilter
public DefaultMavenFileFilter()
-
-
Method Details
-
copyFile
public void copyFile(File from, File to, boolean filtering, org.apache.maven.project.MavenProject mavenProject, List<String> filters, boolean escapedBackslashesInFilePath, String encoding, org.apache.maven.execution.MavenSession mavenSession) throws MavenFilteringException Description copied from interface:MavenFileFilter
Will copy a file with some filtering using defaultFilterWrappers.- Specified by:
copyFile
in interfaceMavenFileFilter
- Parameters:
from
- file to copy/filterto
- destination filefiltering
- enable or not filteringmavenProject
-MavenProject
filters
-List
of String which are path to a Property fileescapedBackslashesInFilePath
- escape backslashes in file path.encoding
- The encoding which is used during the filtering process.mavenSession
-MavenSession
- Throws:
MavenFilteringException
- in case of failure.- See Also:
-
copyFile
public void copyFile(File from, File to, boolean filtering, List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers, String encoding) throws MavenFilteringException - Specified by:
copyFile
in interfaceMavenFileFilter
- Parameters:
from
- The source fileto
- The target filefiltering
- true to apply filteringfilterWrappers
-List
of FileUtils.FilterWrapperencoding
- The encoding used during the filtering.- Throws:
MavenFilteringException
- In case of an error.
-
copyFile
public void copyFile(File from, File to, boolean filtering, List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers, String encoding, boolean overwrite) throws MavenFilteringException - Specified by:
copyFile
in interfaceMavenFileFilter
- Parameters:
from
- The source fileto
- The destination filefiltering
- true to apply filteringfilterWrappers
- The filters to be applied.encoding
- The encoding to useoverwrite
- Overwrite to file ?- Throws:
MavenFilteringException
- In case of an error.
-