Package org.apache.torque.generator.file
Klasse Fileset
java.lang.Object
org.apache.torque.generator.file.Fileset
Selects Files in a directory and the subdirectories of the directory.
From these files, all that match an include pattern and do not
match an exclude pattern are selected.
- Version:
- $Id: Fileset.java 1855923 2019-03-20 16:19:39Z gk $
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFileset()
Default constructor.Fileset
(File basedir, Collection<String> includes, Collection<String> excludes) All-Args constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the base directory of the fileset.Returns the exclude patterns for the fileset.getFiles()
Returns the names of all files matching this fileset.Returns the include patterns for the fileset.void
setBasedir
(File basedir) Sets the base directory of the fileset.void
setExcludes
(Collection<String> excludes) Sets the exclude patterns for the fileset.void
setIncludes
(Collection<String> includes) Sets the include patterns for the fileset.toString()
-
Konstruktordetails
-
Fileset
public Fileset()Default constructor. -
Fileset
All-Args constructor.- Parameter:
basedir
- the basedir, or null to use the current basedir.includes
- The patterns for the files to include. If null or empty, all Files are included.excludes
- The patterns for the files to exclude. If null or empty, no Files are excluded.
-
-
Methodendetails
-
getBasedir
Returns the base directory of the fileset.- Gibt zurück:
- the base directory, or null if no basedir is specified.
-
setBasedir
Sets the base directory of the fileset.- Parameter:
basedir
- the base directory, or null.
-
getIncludes
Returns the include patterns for the fileset.- Gibt zurück:
- the include patterns, or null if all files should be included.
-
setIncludes
Sets the include patterns for the fileset.- Parameter:
includes
- the include patterns, or null if all files should be included.
-
getExcludes
Returns the exclude patterns for the fileset.- Gibt zurück:
- the exclude patterns, or null if all files should be excluded.
-
setExcludes
Sets the exclude patterns for the fileset.- Parameter:
excludes
- the exclude patterns, or null if all files should be excluded.
-
getFiles
Returns the names of all files matching this fileset.- Gibt zurück:
- the names of all matching files, not null.
- Löst aus:
IOException
- if an error occurs reading the file names.
-
toString
-