Class Sync.SyncTarget

All Implemented Interfaces:
java.lang.Cloneable, SelectorContainer
Enclosing class:
Sync

public static class Sync.SyncTarget
extends AbstractFileSet
Inner class used to hold exclude patterns and selectors to save stuff that happens to live in the target directory but should not get removed.
Since:
Ant 1.7
  • Constructor Details

    • SyncTarget

      public SyncTarget()
      Constructor for SyncTarget. This just changes the default value of "defaultexcludes" from true to false.
  • Method Details

    • setDir

      public void setDir​(java.io.File dir) throws BuildException
      Override AbstractFileSet#setDir(File) to disallow setting the directory.
      Overrides:
      setDir in class AbstractFileSet
      Parameters:
      dir - ignored
      Throws:
      BuildException - always
    • setPreserveEmptyDirs

      public void setPreserveEmptyDirs​(boolean b)
      Whether empty directories matched by this fileset should be preserved.
      Parameters:
      b - boolean
      Since:
      Ant 1.8.0
    • getPreserveEmptyDirs

      public java.lang.Boolean getPreserveEmptyDirs()
      Whether empty directories matched by this fileset should be preserved.
      Returns:
      Boolean
      Since:
      Ant 1.8.0