org.objectweb.util.ant

Class MultipleCopy

public class MultipleCopy extends Copy

Author: Field Summary protected Filebasedir

protected FileSetfileset
protected StringmyFile
protected booleannotReplace
protected booleanuseDefaultExcludes
Method Summary
voidcopy()
Performs the copy operation.
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()
protected DirectoryScannergetDirectoryScanner(File baseDir)
Returns the directory scanner needed to access the files to process.
voidsetDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
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.
voidsetNotReplace(boolean nr)
voidsetTodir(File bd)
voidsetTofile(String f)
Sets the destination file.

Field Detail

basedir

protected File basedir

fileset

protected FileSet fileset

myFile

protected String myFile

notReplace

protected boolean notReplace

useDefaultExcludes

protected boolean useDefaultExcludes

Method Detail

copy

public void copy()
Performs the copy operation.

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()

getDirectoryScanner

protected DirectoryScanner getDirectoryScanner(File baseDir)
Returns the directory scanner needed to access the files to process.

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.

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.

setNotReplace

public void setNotReplace(boolean nr)

setTodir

public void setTodir(File bd)

setTofile

public void setTofile(String f)
Sets the destination file.