Class Sync.MyCopy

All Implemented Interfaces:
Cloneable
Enclosing class:
Sync

public static class Sync.MyCopy extends Copy
Subclass Copy in order to access it's file/dir maps.
  • Constructor Details

    • MyCopy

      public MyCopy()
  • Method Details

    • scan

      protected void scan(File fromDir, File toDir, String[] files, String[] dirs)
      Description copied from class: Copy
      Compares source files to destination files to see if they should be copied.
      Overrides:
      scan in class Copy
      Parameters:
      fromDir - The source directory.
      toDir - The destination directory.
      files - A list of files to copy.
      dirs - A list of directories to copy.
      See Also:
    • scan

      protected Map<Resource,String[]> scan(Resource[] resources, File toDir)
      Description copied from class: Copy
      Compares source resources to destination files to see if they should be copied.
      Overrides:
      scan in class Copy
      Parameters:
      resources - The source resources.
      toDir - The destination directory.
      Returns:
      a Map with the out-of-date resources as keys and an array of target file names as values.
      See Also:
    • getToDir

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

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

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