public class ScmFileSet extends Object implements Serializable
Constructor and Description |
---|
ScmFileSet(File basedir)
Create a file set with no files, only the base directory.
|
ScmFileSet(File basedir,
File file)
Create a file set with only the file provided, relative to basedir.
|
ScmFileSet(File basedir,
File[] files)
Deprecated.
use ScmFileSet( File, List )
|
ScmFileSet(File basedir,
List<File> files)
Create a file set with the files provided, relative to basedir.
|
ScmFileSet(File basedir,
String includes)
Create a file set with files from basefile, using includes provided and default excludes.
|
ScmFileSet(File basedir,
String includes,
String excludes)
Create a file set with only files (not directories) from basefile,
using includes and excludes provided.
|
Modifier and Type | Method and Description |
---|---|
File |
getBasedir()
Get the base directory of the file set.
|
String |
getExcludes() |
List<File> |
getFileList()
Get the list of files in the set, relative to basedir
|
File[] |
getFiles()
Deprecated.
use getFileList() instead
|
String |
getIncludes() |
String |
toString() |
public ScmFileSet(File basedir)
basedir
- directory files in the set are relative topublic ScmFileSet(File basedir, File file)
basedir
- directory file is relative tofile
- file that the set will contain, has to be relative to basedirpublic ScmFileSet(File basedir, String includes, String excludes) throws IOException
basedir
- directory files are relative toincludes
- Ant pattern for files to includeexcludes
- Ant pattern for files to exclude,
if null DEFAULT_EXCLUDES is used, else DEFAULT_EXCLUDES is added.IOException
- if anypublic ScmFileSet(File basedir, String includes) throws IOException
basedir
- directory files are relative toincludes
- Ant pattern for files to includeIOException
- if anypublic ScmFileSet(File basedir, File[] files)
basedir
- directory files are relative tofiles
- files that the set will contain, have to be relative to basedirpublic ScmFileSet(File basedir, List<File> files)
basedir
- directory files are relative tofiles
- list of File objects, files that the set will contain, have to be relative to basedirpublic File getBasedir()
public File[] getFiles()
public List<File> getFileList()
public String getIncludes()
public String getExcludes()
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.