public interface MavenFileFilter extends DefaultFilterInfo
Modifier and Type | Method and Description |
---|---|
void |
copyFile(File from,
File to,
boolean filtering,
List<FileUtils.FilterWrapper> filterWrappers,
String encoding) |
void |
copyFile(File from,
File to,
boolean filtering,
List<FileUtils.FilterWrapper> filterWrappers,
String encoding,
boolean overwrite) |
void |
copyFile(File from,
File to,
boolean filtering,
MavenProject mavenProject,
List<String> filters,
boolean escapedBackslashesInFilePath,
String encoding,
MavenSession mavenSession)
Will copy a file with some filtering using defaultFilterWrappers.
|
void |
copyFile(MavenFileFilterRequest mavenFileFilterRequest) |
getDefaultFilterWrappers, getDefaultFilterWrappers
void copyFile(File from, File to, boolean filtering, MavenProject mavenProject, List<String> filters, boolean escapedBackslashesInFilePath, String encoding, MavenSession mavenSession) throws MavenFilteringException
from
- file to copy/filterto
- destination filefiltering
- enable or not filteringmavenProject
- MavenProject
mavenSession
- MavenSession
escapedBackslashesInFilePath
- escape backslashes in file path.filters
- List
of String which are path to a Property fileencoding
- The encoding which is used during the filtering process.MavenFilteringException
- in case of failure.DefaultFilterInfo.getDefaultFilterWrappers(MavenProject, List, boolean,MavenSession, MavenResourcesExecution)
void copyFile(MavenFileFilterRequest mavenFileFilterRequest) throws MavenFilteringException
mavenFileFilterRequest
- the requestMavenFilteringException
- in case of failure.void copyFile(File from, File to, boolean filtering, List<FileUtils.FilterWrapper> filterWrappers, String encoding) throws MavenFilteringException
from
- The source fileto
- The target filefiltering
- true to apply filteringfilterWrappers
- List
of FileUtils.FilterWrapperencoding
- The encoding used during the filtering.MavenFilteringException
- In case of an error.void copyFile(File from, File to, boolean filtering, List<FileUtils.FilterWrapper> filterWrappers, String encoding, boolean overwrite) throws MavenFilteringException
from
- The source fileto
- The destination filefiltering
- true to apply filteringfilterWrappers
- The filters to be applied.encoding
- The encoding to useoverwrite
- Overwrite to file ?MavenFilteringException
- In case of an error.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.