org.apache.tools.ant.taskdefs

Class Sync.MyCopy

Enclosing Class:
Sync
Implemented Interfaces:
Cloneable

public static class Sync.MyCopy
extends Copy

Subclass Copy in order to access it's file/dir maps.

Field Summary

Fields inherited from class org.apache.tools.ant.taskdefs.Copy

completeDirMap, destDir, destFile, dirCopyMap, failonerror, file, fileCopyMap, fileUtils, filtering, flatten, forceOverwrite, includeEmpty, mapperElement, preserveLastModified, rcs, verbosity

Fields inherited from class org.apache.tools.ant.Task

target, taskName, taskType, wrapper

Fields inherited from class org.apache.tools.ant.ProjectComponent

description, location, project

Constructor Summary

MyCopy()
Constructor for MyCopy.

Method Summary

boolean
getIncludeEmptyDirs()
Get the includeEmptyDirs attribute.
File
getToDir()
Get the destination directory.
protected void
scan(File fromDir, File toDir, String[] files, String[] dirs)
protected Map
scan(Resource[] resources, File toDir)
protected boolean
supportsNonFileResources()
Yes, we can.

Methods inherited from class org.apache.tools.ant.taskdefs.Copy

add, add, addFileset, buildMap, buildMap, createFilterChain, createFilterSet, createMapper, doFileOperations, doResourceOperations, execute, getEncoding, getFileUtils, getFilterChains, getFilterSets, getOutputEncoding, getPreserveLastModified, isEnableMultipleMapping, scan, scan, setEnableMultipleMappings, setEncoding, setFailOnError, setFile, setFiltering, setFlatten, setGranularity, setIncludeEmptyDirs, setOutputEncoding, setOverwrite, setPreserveLastModified, setPreserveLastModified, setTodir, setTofile, setVerbose, supportsNonFileResources, validateAttributes

Methods inherited from class org.apache.tools.ant.Task

bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

Methods inherited from class org.apache.tools.ant.ProjectComponent

clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

Constructor Details

MyCopy

public MyCopy()
Constructor for MyCopy.

Method Details

getIncludeEmptyDirs

public boolean getIncludeEmptyDirs()
Get the includeEmptyDirs attribute.
Returns:
true if emptyDirs are to be included

getToDir

public File getToDir()
Get the destination directory.
Returns:
the destination directory

scan

protected void scan(File fromDir,
                    File toDir,
                    String[] files,
                    String[] dirs)
Overrides:
scan in interface Copy

scan

protected Map scan(Resource[] resources,
                   File toDir)
Overrides:
scan in interface Copy

supportsNonFileResources

protected boolean supportsNonFileResources()
Yes, we can.
Overrides:
supportsNonFileResources in interface Copy
Returns:
true always.
Since:
Ant 1.7