org.apache.tools.ant.taskdefs

Class Sync.MyCopy

public static class Sync.MyCopy extends Copy

Subclass Copy in order to access it's file/dir maps.
Constructor Summary
MyCopy()
Constructor for MyCopy.
Method Summary
booleangetIncludeEmptyDirs()
Get the includeEmptyDirs attribute.
FilegetToDir()
Get the destination directory.
protected voidscan(File fromDir, File toDir, String[] files, String[] dirs)
{@inheritDoc}
protected Mapscan(Resource[] resources, File toDir)
{@inheritDoc}
protected booleansupportsNonFileResources()
Yes, we can.

Constructor Detail

MyCopy

public MyCopy()
Constructor for MyCopy.

Method Detail

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)
{@inheritDoc}

scan

protected Map scan(Resource[] resources, File toDir)
{@inheritDoc}

supportsNonFileResources

protected boolean supportsNonFileResources()
Yes, we can.

Returns: true always.

Since: Ant 1.7