Class AbstractFileSet<T extends AbstractFileSet>
java.lang.Object
org.codehaus.plexus.archiver.util.AbstractFileSet<T>
- All Implemented Interfaces:
BaseFileSet
- Direct Known Subclasses:
DefaultArchivedFileSet, DefaultFileSet
public abstract class AbstractFileSet<T extends AbstractFileSet>
extends Object
implements BaseFileSet
Default implementation of
BaseFileSet.- Since:
- 1.0-alpha-9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns a string of patterns, which excluded files should match.org.codehaus.plexus.components.io.filemappers.FileMapper[]Returns a set of file mappers, which should be used to change the filename of the included files.org.codehaus.plexus.components.io.fileselectors.FileSelector[]Returns a set of file selectors, which should be used to select the included files.String[]Returns a string of patterns, which included files should match.Returns the prefix, which the file sets contents shall have.org.codehaus.plexus.components.io.functions.InputStreamTransformerReturns the InputStreamTransformers that can be applied to this filesetincludeEmptyDirs(boolean includeEmptyDirectories) includeExclude(String[] includes, String[] excludes) booleanReturns, whether the include/exclude patterns are case-sensitive.booleanReturns, whether empty directories are being included.booleanReturns, whether the default excludes are being applied.voidsetCaseSensitive(boolean caseSensitive) Sets, whether the include/exclude patterns are case sensitive.voidsetExcludes(String[] excludes) Sets a string of patterns, which excluded files should match.voidsetFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) Sets a set of file mappers, which should be used to change the filename of the included files.voidsetFileSelectors(org.codehaus.plexus.components.io.fileselectors.FileSelector[] fileSelectors) Sets a set of file selectors, which should be used to select the included files.voidsetIncludes(String[] includes) Sets a string of patterns, which included files should match.voidsetIncludingEmptyDirectories(boolean includingEmptyDirectories) Sets, whether empty directories are being included.voidSets the prefix, which the file sets contents shall have.voidsetStreamTransformer(org.codehaus.plexus.components.io.functions.InputStreamTransformer streamTransformer) voidsetUsingDefaultExcludes(boolean usingDefaultExcludes) Sets, whether the default excludes are being applied.usingDefaultExcludes(boolean usingDefaultExcludes)
-
Constructor Details
-
AbstractFileSet
public AbstractFileSet()
-
-
Method Details
-
setExcludes
Sets a string of patterns, which excluded files should match. -
getExcludes
Description copied from interface:BaseFileSetReturns a string of patterns, which excluded files should match.- Specified by:
getExcludesin interfaceBaseFileSet
-
setFileSelectors
public void setFileSelectors(org.codehaus.plexus.components.io.fileselectors.FileSelector[] fileSelectors) Sets a set of file selectors, which should be used to select the included files. -
getFileSelectors
public org.codehaus.plexus.components.io.fileselectors.FileSelector[] getFileSelectors()Description copied from interface:BaseFileSetReturns a set of file selectors, which should be used to select the included files.- Specified by:
getFileSelectorsin interfaceBaseFileSet
-
setIncludes
Sets a string of patterns, which included files should match. -
getIncludes
Description copied from interface:BaseFileSetReturns a string of patterns, which included files should match.- Specified by:
getIncludesin interfaceBaseFileSet
-
setPrefix
Sets the prefix, which the file sets contents shall have. -
getPrefix
Description copied from interface:BaseFileSetReturns the prefix, which the file sets contents shall have.- Specified by:
getPrefixin interfaceBaseFileSet
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive) Sets, whether the include/exclude patterns are case sensitive. Defaults to true. -
isCaseSensitive
public boolean isCaseSensitive()Description copied from interface:BaseFileSetReturns, whether the include/exclude patterns are case-sensitive.- Specified by:
isCaseSensitivein interfaceBaseFileSet
-
setUsingDefaultExcludes
public void setUsingDefaultExcludes(boolean usingDefaultExcludes) Sets, whether the default excludes are being applied. Defaults to true. -
isUsingDefaultExcludes
public boolean isUsingDefaultExcludes()Description copied from interface:BaseFileSetReturns, whether the default excludes are being applied.- Specified by:
isUsingDefaultExcludesin interfaceBaseFileSet
-
setIncludingEmptyDirectories
public void setIncludingEmptyDirectories(boolean includingEmptyDirectories) Sets, whether empty directories are being included. Defaults to true. -
isIncludingEmptyDirectories
public boolean isIncludingEmptyDirectories()Description copied from interface:BaseFileSetReturns, whether empty directories are being included.- Specified by:
isIncludingEmptyDirectoriesin interfaceBaseFileSet
-
prefixed
-
include
-
exclude
-
includeExclude
-
includeEmptyDirs
-
usingDefaultExcludes
-
setStreamTransformer
public void setStreamTransformer(@Nonnull org.codehaus.plexus.components.io.functions.InputStreamTransformer streamTransformer) -
getStreamTransformer
public org.codehaus.plexus.components.io.functions.InputStreamTransformer getStreamTransformer()Description copied from interface:BaseFileSetReturns the InputStreamTransformers that can be applied to this fileset- Specified by:
getStreamTransformerin interfaceBaseFileSet- Returns:
- The transformers.
-
setFileMappers
public void setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers) Sets a set of file mappers, which should be used to change the filename of the included files. -
getFileMappers
public org.codehaus.plexus.components.io.filemappers.FileMapper[] getFileMappers()Description copied from interface:BaseFileSetReturns a set of file mappers, which should be used to change the filename of the included files.- Specified by:
getFileMappersin interfaceBaseFileSet
-