org.objectweb.util.ant
Class MultipleAnt
Ant
org.objectweb.util.ant.MultipleAnt
- FilenameFilter
public class MultipleAnt
extends Ant
implements FilenameFilter
This task calls all xml files into the specified Dir
boolean | accept(File dir, String name) - This method is used to chack if a file is a xml file.
|
PatternSet.NameEntry | createExclude() - add a name entry on the exclude list
|
PatternSet.NameEntry | createExcludesFile() - add a name entry on the include files list
|
PatternSet.NameEntry | createInclude() - add a name entry on the include list
|
PatternSet.NameEntry | createIncludesFile() - add a name entry on the include files list
|
PatternSet | createPatternSet() - add a set of patterns
|
void | execute() - Search all files in the directory.
|
protected DirectoryScanner | getDirectoryScanner(File baseDir) - Returns the directory scanner needed to access the files to process.
|
void | setAntFile(String f)
|
void | setDefaultexcludes(boolean useDefaultExcludes) - Sets whether default exclusions should be used or not.
|
void | setDir(File d) - Set the directory where find xml file(s).
|
void | setExcludes(String excludes) - Sets the set of exclude patterns.
|
void | setExcludesfile(File excludesfile) - Sets the name of the file containing the includes patterns.
|
void | setIncludes(String includes) - Sets the set of include patterns.
|
void | setIncludesfile(File includesfile) - Sets the name of the file containing the includes patterns.
|
void | setTarget(String t)
|
antFile
protected String antFile
directory
protected File directory
fileset
protected FileSet fileset
target
protected String target
useDefaultExcludes
protected boolean useDefaultExcludes
accept
public boolean accept(File dir,
String name)
This method is used to chack if a file is a xml file.
createExclude
public PatternSet.NameEntry createExclude()
add a name entry on the exclude list
createExcludesFile
public PatternSet.NameEntry createExcludesFile()
add a name entry on the include files list
createInclude
public PatternSet.NameEntry createInclude()
add a name entry on the include list
createIncludesFile
public PatternSet.NameEntry createIncludesFile()
add a name entry on the include files list
createPatternSet
public PatternSet createPatternSet()
add a set of patterns
execute
public void execute()
throws BuildException
Search all files in the directory. Foreach set the antfile on the ant
task and execute the ant task.
getDirectoryScanner
protected DirectoryScanner getDirectoryScanner(File baseDir)
Returns the directory scanner needed to access the files to process.
setAntFile
public void setAntFile(String f)
setDefaultexcludes
public void setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
useDefaultExcludes
- "true"|"on"|"yes" when default exclusions should be used,
"false"|"off"|"no" when they shouldn't be used.
setDir
public void setDir(File d)
Set the directory where find xml file(s). The field "dir" is required to
use this task.
setExcludes
public void setExcludes(String excludes)
Sets the set of exclude patterns. Patterns may be separated by a comma or
a space.
excludes
- the string containing the exclude patterns
setExcludesfile
public void setExcludesfile(File excludesfile)
Sets the name of the file containing the includes patterns.
excludesfile
- A string containing the filename to fetch the include patterns
from.
setIncludes
public void setIncludes(String includes)
Sets the set of include patterns. Patterns may be separated by a comma or
a space.
includes
- the string containing the include patterns
setIncludesfile
public void setIncludesfile(File includesfile)
Sets the name of the file containing the includes patterns.
includesfile
- A string containing the filename to fetch the include patterns
from.
setTarget
public void setTarget(String t)