Class FileSet
java.lang.Object
org.apache.maven.archetype.metadata.FileSet
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionprivate StringThe directory where the files will be searched for, which is also the directory where the project's files will be generated.private StringEncoding to use when filtering content.Field excludes.private booleanFilesets can be filtered, which means the selected files will be used as Velocity templates.Field includes.private booleanFilesets 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclude(String string) Method addExclude.voidaddInclude(String string) 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.booleanGet filesets can be filtered, which means the selected files will be used as Velocity templates.booleanGet filesets can be packaged, which means the selected files will be generated/copied in a directory structure that is prepended by the package property.voidremoveExclude(String string) Method removeExclude.voidremoveInclude(String string) Method removeInclude.voidsetDirectory(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.voidsetEncoding(String encoding) Set encoding to use when filtering content.voidsetExcludes(List<String> excludes) Set exclusion definition "à la" Ant.voidsetFiltered(boolean filtered) Set filesets can be filtered, which means the selected files will be used as Velocity templates.voidsetIncludes(List<String> includes) Set inclusion definition "à la" Ant.voidsetPackaged(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.toString()
-
Field Details
-
filtered
private boolean filteredFilesets 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 packagedFilesets 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
Encoding to use when filtering content. -
directory
The directory where the files will be searched for, which is also the directory where the project's files will be generated. -
includes
-
excludes
-
-
Constructor Details
-
FileSet
public FileSet()
-
-
Method Details
-
addExclude
-
addInclude
-
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
-
getExcludes
-
getIncludes
-
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
Method removeExclude.- Parameters:
string- a string object.
-
removeInclude
Method removeInclude.- Parameters:
string- a string object.
-
setDirectory
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
Set encoding to use when filtering content.- Parameters:
encoding- a encoding object.
-
setExcludes
-
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
-
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
-