Class FileSet

java.lang.Object
org.apache.maven.archetype.metadata.FileSet
All Implemented Interfaces:
Serializable

public class FileSet extends Object implements Serializable
A fileset defines the way the project's files located in the jar file are used by the Archetype Plugin to generate a project. If file or directory name contains __property__ pattern, it is replaced with corresponding property value.
Version:
$Revision$ $Date$
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    The directory where the files will be searched for, which is also the directory where the project's files will be generated.
    private String
    Encoding to use when filtering content.
    private List<String>
    Field excludes.
    private boolean
    Filesets can be filtered, which means the selected files will be used as Velocity templates.
    private List<String>
    Field includes.
    private boolean
    Filesets can be packaged, which means the selected files will be generated/copied in a directory structure that is prepended by the package property.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Method addExclude.
    void
    Method addInclude.
    Get the directory where the files will be searched for, which is also the directory where the project's files will be generated.
    Get encoding to use when filtering content.
    Method getExcludes.
    Method getIncludes.
    boolean
    Get filesets can be filtered, which means the selected files will be used as Velocity templates.
    boolean
    Get filesets can be packaged, which means the selected files will be generated/copied in a directory structure that is prepended by the package property.
    void
    Method removeExclude.
    void
    Method removeInclude.
    void
    setDirectory(String directory)
    Set the directory where the files will be searched for, which is also the directory where the project's files will be generated.
    void
    setEncoding(String encoding)
    Set encoding to use when filtering content.
    void
    setExcludes(List<String> excludes)
    Set exclusion definition "à la" Ant.
    void
    setFiltered(boolean filtered)
    Set filesets can be filtered, which means the selected files will be used as Velocity templates.
    void
    setIncludes(List<String> includes)
    Set inclusion definition "à la" Ant.
    void
    setPackaged(boolean packaged)
    Set filesets can be packaged, which means the selected files will be generated/copied in a directory structure that is prepended by the package property.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • filtered

      private boolean filtered
      Filesets can be filtered, which means the selected files will be used as Velocity templates. They can be non-filtered, which means the selected files will be copied without modification.
    • packaged

      private boolean packaged
      Filesets can be packaged, which means the selected files will be generated/copied in a directory structure that is prepended by the package property. They can be non-packaged, which means that the selected files will be generated/copied without that prepend.
    • encoding

      private String encoding
      Encoding to use when filtering content.
    • directory

      private String directory
      The directory where the files will be searched for, which is also the directory where the project's files will be generated.
    • includes

      private List<String> includes
      Field includes.
    • excludes

      private List<String> excludes
      Field excludes.
  • Constructor Details

    • FileSet

      public FileSet()
  • Method Details

    • addExclude

      public void addExclude(String string)
      Method addExclude.
      Parameters:
      string - a string object.
    • addInclude

      public void addInclude(String string)
      Method addInclude.
      Parameters:
      string - a string object.
    • getDirectory

      public String getDirectory()
      Get the directory where the files will be searched for, which is also the directory where the project's files will be generated.
      Returns:
      String
    • getEncoding

      public String getEncoding()
      Get encoding to use when filtering content.
      Returns:
      String
    • getExcludes

      public List<String> getExcludes()
      Method getExcludes.
      Returns:
      List
    • getIncludes

      public List<String> getIncludes()
      Method getIncludes.
      Returns:
      List
    • isFiltered

      public boolean isFiltered()
      Get filesets can be filtered, which means the selected files will be used as Velocity templates. They can be non-filtered, which means the selected files will be copied without modification.
      Returns:
      boolean
    • isPackaged

      public boolean isPackaged()
      Get filesets can be packaged, which means the selected files will be generated/copied in a directory structure that is prepended by the package property. They can be non-packaged, which means that the selected files will be generated/copied without that prepend.
      Returns:
      boolean
    • removeExclude

      public void removeExclude(String string)
      Method removeExclude.
      Parameters:
      string - a string object.
    • removeInclude

      public void removeInclude(String string)
      Method removeInclude.
      Parameters:
      string - a string object.
    • setDirectory

      public void setDirectory(String directory)
      Set the directory where the files will be searched for, which is also the directory where the project's files will be generated.
      Parameters:
      directory - a directory object.
    • setEncoding

      public void setEncoding(String encoding)
      Set encoding to use when filtering content.
      Parameters:
      encoding - a encoding object.
    • setExcludes

      public void setExcludes(List<String> excludes)
      Set exclusion definition "à la" Ant.
      Parameters:
      excludes - a excludes object.
    • setFiltered

      public void setFiltered(boolean filtered)
      Set filesets can be filtered, which means the selected files will be used as Velocity templates. They can be non-filtered, which means the selected files will be copied without modification.
      Parameters:
      filtered - a filtered object.
    • setIncludes

      public void setIncludes(List<String> includes)
      Set inclusion definition "à la" Ant.
      Parameters:
      includes - a includes object.
    • setPackaged

      public void setPackaged(boolean packaged)
      Set filesets can be packaged, which means the selected files will be generated/copied in a directory structure that is prepended by the package property. They can be non-packaged, which means that the selected files will be generated/copied without that prepend.
      Parameters:
      packaged - a packaged object.
    • toString

      public String toString()
      Overrides:
      toString in class Object