public class FileSet extends AbstractFileSet
http://en.wikibooks.org/wiki/Apache_Ant/Fileset
. This is not a complete equivalent
implementation of the ant fileset. Only the subset needed for PDE root files is supported.Modifier and Type | Field and Description |
---|---|
private java.io.File |
baseDir |
private java.lang.String |
destinationDir |
defaultExcludePatterns, includePattern
Constructor and Description |
---|
FileSet(java.io.File baseDir,
java.lang.String pattern)
Equivalent to
#FileSet(File, String, boolean) with useDefaultExludes == true;
destinationDir = "" |
FileSet(java.io.File baseDir,
java.lang.String pattern,
java.lang.String destinationDir,
boolean useDefaultExcludes)
Creates a fileset.
|
Modifier and Type | Method and Description |
---|---|
private void |
addFileIfMatch(java.io.File file,
FileToPathMap result,
org.eclipse.core.runtime.IPath baseDir,
org.eclipse.core.runtime.IPath destination) |
java.io.File |
getBaseDir() |
private void |
recursiveScan(java.io.File file,
FileToPathMap result,
org.eclipse.core.runtime.IPath baseDirPath,
org.eclipse.core.runtime.IPath destinationPath) |
FileToPathMap |
scan()
Scan the filesystem below baseDir for matching files.
|
matches
private java.io.File baseDir
private java.lang.String destinationDir
public FileSet(java.io.File baseDir, java.lang.String pattern)
#FileSet(File, String, boolean)
with useDefaultExludes == true;
destinationDir = ""public FileSet(java.io.File baseDir, java.lang.String pattern, java.lang.String destinationDir, boolean useDefaultExcludes)
baseDir
- the base directory to scanpattern
- ant file inclusion pattern (relative to baseDir). Wildcards **,* and ? are
supported.useDefaultExcludes
- whether to use default file excludes for typical SCM metadata files.public java.io.File getBaseDir()
public FileToPathMap scan()
private void recursiveScan(java.io.File file, FileToPathMap result, org.eclipse.core.runtime.IPath baseDirPath, org.eclipse.core.runtime.IPath destinationPath)
private void addFileIfMatch(java.io.File file, FileToPathMap result, org.eclipse.core.runtime.IPath baseDir, org.eclipse.core.runtime.IPath destination)