public final class FileSet
extends java.lang.Object
FilePath
maybe with a common path.
The method listFiles(List, FilePath, org.vishia.util.FilePath.FilePathEnvAccess, boolean)
prepares a List of simple FilePath
with resolved access- and common path and resolved variables.
Docu_UML_simpleNotation
:
FileSet |------------commonpath------------>FilePath
| |------------filesOfFileset-------*>FilePath
-drive: -absPath: boolean -basepath -localdir -name -someFiles: boolean -ext
Modifier and Type | Field and Description |
---|---|
private FilePath |
commonPath
From ZBNF basepath = <""?!
|
private java.util.List<FilePath> |
filesOfFileset
All entries of the file set how it is given in the users script.
|
static java.lang.String |
sVersion
Version, history and license.
|
Constructor and Description |
---|
FileSet() |
Modifier and Type | Method and Description |
---|---|
void |
add_filePath(java.lang.String val) |
void |
listFiles(java.util.List<FilePath> files,
FilePath accesspath,
FilePath.FilePathEnvAccess env,
boolean expandFiles)
Builds a list of
FilePath from the given fileSet. |
private void |
listFiles(java.util.List<FilePath> files,
FilePath accesspath,
FilePath.FilePathEnvAccess env,
boolean expandFiles,
int recursionCount)
Called fro
#listFiles(List, FilePath, FilePathEnvAccess, boolean) |
void |
set_commonPath(java.lang.String val) |
java.lang.String |
toString() |
public static final java.lang.String sVersion
FileSet
variable or especially a JZtxtcmdFileset
variable.
Then it is not a FileSet but it is a reference to an included FileSet. On FileSet#listFiles(List, FilePath, FilePathEnvAccess, boolean)
it will be recognized and unpacked. It is on runtime. Note: On script compilation time the variable content may not existent yet.
The variable is only given as String.
FileSet
as extra class from JZtxtcmdFileset
.
private FilePath commonPath
private final java.util.List<FilePath> filesOfFileset
public void set_commonPath(java.lang.String val)
public void add_filePath(java.lang.String val)
public void listFiles(java.util.List<FilePath> files, FilePath accesspath, FilePath.FilePathEnvAccess env, boolean expandFiles) throws java.lang.NoSuchFieldException
FilePath
from the given fileSet. The new FilePath in files are absolute without a FilePath.scriptVariable
and without FilePath.varChars
and FilePath.varFileset
. This relations are dissolved.
if a file set is detect inside this fileset, it is expanded too. Only 100 nested filesets are possible (typically 1 or 2)files
- The new FilePath
are added here.accesspath
- The access path is an additional part of a base path.env
- Access to variables and currDir of a JZtxtcmdExecuter
or other environmentexpandFiles
- expands wildcards, if false, the wildcard remain in the path paprts.java.lang.NoSuchFieldException
private void listFiles(java.util.List<FilePath> files, FilePath accesspath, FilePath.FilePathEnvAccess env, boolean expandFiles, int recursionCount) throws java.lang.NoSuchFieldException
#listFiles(List, FilePath, FilePathEnvAccess, boolean)
recursionCount
- max. 100 recursions.java.lang.NoSuchFieldException
public java.lang.String toString()
toString
in class java.lang.Object