org.objectweb.util.ant

Class MultipleAnt

public class MultipleAnt extends Ant implements FilenameFilter

This task calls all xml files into the specified Dir
Field Summary
protected StringantFile
protected Filedirectory
protected FileSetfileset
protected Stringtarget
protected booleanuseDefaultExcludes
Method Summary
booleanaccept(File dir, String name)
This method is used to chack if a file is a xml file.
NameEntrycreateExclude()
add a name entry on the exclude list
NameEntrycreateExcludesFile()
add a name entry on the include files list
NameEntrycreateInclude()
add a name entry on the include list
NameEntrycreateIncludesFile()
add a name entry on the include files list
PatternSetcreatePatternSet()
add a set of patterns
voidexecute()
Search all files in the directory.
protected DirectoryScannergetDirectoryScanner(File baseDir)
Returns the directory scanner needed to access the files to process.
voidsetAntFile(String f)
voidsetDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
voidsetDir(File d)
Set the directory where find xml file(s).
voidsetExcludes(String excludes)
Sets the set of exclude patterns.
voidsetExcludesfile(File excludesfile)
Sets the name of the file containing the includes patterns.
voidsetIncludes(String includes)
Sets the set of include patterns.
voidsetIncludesfile(File includesfile)
Sets the name of the file containing the includes patterns.
voidsetTarget(String t)

Field Detail

antFile

protected String antFile

directory

protected File directory

fileset

protected FileSet fileset

target

protected String target

useDefaultExcludes

protected boolean useDefaultExcludes

Method Detail

accept

public boolean accept(File dir, String name)
This method is used to chack if a file is a xml file.

createExclude

public NameEntry createExclude()
add a name entry on the exclude list

createExcludesFile

public NameEntry createExcludesFile()
add a name entry on the include files list

createInclude

public NameEntry createInclude()
add a name entry on the include list

createIncludesFile

public NameEntry createIncludesFile()
add a name entry on the include files list

createPatternSet

public PatternSet createPatternSet()
add a set of patterns

execute

public void execute()
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.

Parameters: 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.

Parameters: excludes the string containing the exclude patterns

setExcludesfile

public void setExcludesfile(File excludesfile)
Sets the name of the file containing the includes patterns.

Parameters: 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.

Parameters: includes the string containing the include patterns

setIncludesfile

public void setIncludesfile(File includesfile)
Sets the name of the file containing the includes patterns.

Parameters: includesfile A string containing the filename to fetch the include patterns from.

setTarget

public void setTarget(String t)