java.lang.Object
org.apache.maven.buildcache.xml.config.Include
All Implemented Interfaces:
Serializable

public class Include extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get files in a directory are filtered by matching their names against this glob.
    Get path to add to the checksum computation.
    boolean
    Get by default, hidden files and directories (as determined by Files.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.
    boolean
    Get will search in sub-folders if set to true.
    void
    Set files in a directory are filtered by matching their names against this glob.
    void
    setIncludeHidden(boolean includeHidden)
    Set by default, hidden files and directories (as determined by Files.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.
    void
    setRecursive(boolean recursive)
    Set will search in sub-folders if set to true.
    void
    Set path to add to the checksum computation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Include

      public Include()
  • Method Details

    • getGlob

      public String getGlob()
      Get files in a directory are filtered by matching their names against this glob.
      Returns:
      String
    • getValue

      public 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 by Files.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 to true to 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

      public void setGlob(String glob)
      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 by Files.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 to true to 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

      public void setValue(String value)
      Set path to add to the checksum computation.
      Parameters:
      value - a value object.