| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.Sync
Synchronize a local target directory from the files defined in one or more filesets.
Uses a <copy> task internally, but forbidding the use of mappers and filter chains. Files of the destination directory not present in any of the source fileset are removed.
| Nested Class Summary | |
| static class | Sync.MyCopySubclass Copy in order to access it's file/dir maps. | 
| Field Summary | 
| Fields inherited from class org.apache.tools.ant.Task | 
| description, location, target, taskName, taskType, wrapper | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
| project | 
| Constructor Summary | |
| Sync() | |
| Method Summary | |
|  void | addFileset(FileSet set)Adds a set of files to copy. | 
|  void | execute()Called by the project to let the task do its work. | 
|  void | init()Called by the project to let the task initialize properly. | 
|  void | setFailOnError(boolean failonerror)If false, note errors to the output but keep going. | 
|  void | setGranularity(long granularity)The number of milliseconds leeway to give before deciding a target is out of date. | 
|  void | setIncludeEmptyDirs(boolean includeEmpty)Used to copy empty directories. | 
|  void | setOverwrite(boolean overwrite)Overwrite any existing destination file(s). | 
|  void | setTodir(java.io.File destDir)Sets the destination directory. | 
|  void | setVerbose(boolean verbose)Used to force listing of all names of copied files. | 
| Methods inherited from class org.apache.tools.ant.Task | 
| getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
| getProject, setProject | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Sync()
| Method Detail | 
public void init()
          throws BuildException
Task
init in class TaskBuildException - if something goes wrong with the build
public void execute()
             throws BuildException
Task
execute in class TaskBuildException - if something goes wrong with the buildpublic void setTodir(java.io.File destDir)
public void setVerbose(boolean verbose)
public void setOverwrite(boolean overwrite)
public void setIncludeEmptyDirs(boolean includeEmpty)
public void setFailOnError(boolean failonerror)
failonerror - true or falsepublic void addFileset(FileSet set)
public void setGranularity(long granularity)
Default is 0 milliseconds, or 2 seconds on DOS systems.
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||