Class Include
java.lang.Object
org.apache.maven.buildcache.xml.config.Include
- All Implemented Interfaces:
Serializable
A file or a directory path to add to checksum computation. Relative paths are relative to each module basedir.
Include elements can also be added per project with the use of maven properties.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGlob()Get files in a directory are filtered by matching their names against this glob.getValue()Get path to add to the checksum computation.booleanGet by default, hidden files and directories (as determined byFiles.isHidden, or by a name starting with a dot) are always skipped when scanning for input files, even if they would otherwise match this include.booleanGet will search in sub-folders if set to true.voidSet files in a directory are filtered by matching their names against this glob.voidsetIncludeHidden(boolean includeHidden) Set by default, hidden files and directories (as determined byFiles.isHidden, or by a name starting with a dot) are always skipped when scanning for input files, even if they would otherwise match this include.voidsetRecursive(boolean recursive) Set will search in sub-folders if set to true.voidSet path to add to the checksum computation.
-
Constructor Details
-
Include
public Include()
-
-
Method Details
-
getGlob
Get files in a directory are filtered by matching their names against this glob.- Returns:
- String
-
getValue
Get path to add to the checksum computation.- Returns:
- String
-
isIncludeHidden
public boolean isIncludeHidden()Get by default, hidden files and directories (as determined byFiles.isHidden, or by a name starting with a dot) are always skipped when scanning for input files, even if they would otherwise match this include. Set totrueto also scan hidden entries under this include.- Returns:
- boolean
-
isRecursive
public boolean isRecursive()Get will search in sub-folders if set to true.- Returns:
- boolean
-
setGlob
Set files in a directory are filtered by matching their names against this glob.- Parameters:
glob- a glob object.
-
setIncludeHidden
public void setIncludeHidden(boolean includeHidden) Set by default, hidden files and directories (as determined byFiles.isHidden, or by a name starting with a dot) are always skipped when scanning for input files, even if they would otherwise match this include. Set totrueto also scan hidden entries under this include.- Parameters:
includeHidden- a includeHidden object.
-
setRecursive
public void setRecursive(boolean recursive) Set will search in sub-folders if set to true.- Parameters:
recursive- a recursive object.
-
setValue
Set path to add to the checksum computation.- Parameters:
value- a value object.
-