org.objectweb.util.ant

Class MultipleCopy


public class MultipleCopy
extends Copy

Author:

Field Summary

protected File
basedir
protected FileSet
fileset
protected String
myFile
protected boolean
notReplace
protected boolean
useDefaultExcludes

Method Summary

void
copy()
Performs the copy operation.
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()
protected DirectoryScanner
getDirectoryScanner(File baseDir)
Returns the directory scanner needed to access the files to process.
void
setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not.
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
setNotReplace(boolean nr)
void
setTodir(File bd)
void
setTofile(String f)
Sets the destination file.

Field Details

basedir

protected File basedir

fileset

protected FileSet fileset

myFile

protected String myFile

notReplace

protected boolean notReplace

useDefaultExcludes

protected boolean useDefaultExcludes

Method Details

copy

public void copy()
            throws BuildException
Performs the copy operation.

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

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.