diff --git a/docs/manual/CoreTasks/sync.html b/docs/manual/CoreTasks/sync.html new file mode 100644 index 000000000..7d24a0c1e --- /dev/null +++ b/docs/manual/CoreTasks/sync.html @@ -0,0 +1,68 @@ + + + + +Sync Task + + + + +

Sync

+

Since Ant 1.6

+

Description

+ +

Synchronize a target directory from the files defined in one or +more filesets.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
todirthe target directory to sync with the filesetsYes
overwriteOverwrite existing files even if the destination + files are newer.No; defaults to false.
includeEmptyDirsCopy any empty directories included in the FileSet(s). + No; defaults to true.
failonerrorLog a warning message, but do not stop the build, + when one of the nested filesets points to a directory that + doesn't exist. + No; defaults to true.
verboseLog the files that are being copied.No; defaults to false.
+ +

Parameters specified as nested elements

+ +

fileset

+

FileSets are used to select +sets of files and directories.

+ +
+

Copyright © 2003 Apache Software Foundation. All rights +Reserved.

+ + + + diff --git a/docs/manual/coretasklist.html b/docs/manual/coretasklist.html index d17f4f9e5..86e6d064b 100644 --- a/docs/manual/coretasklist.html +++ b/docs/manual/coretasklist.html @@ -76,6 +76,7 @@ Sql
Style
Subant
+Sync
Tar
Taskdef
Tempfile
diff --git a/src/main/org/apache/tools/ant/taskdefs/Sync.java b/src/main/org/apache/tools/ant/taskdefs/Sync.java index 04457b14c..df964a43a 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Sync.java +++ b/src/main/org/apache/tools/ant/taskdefs/Sync.java @@ -323,21 +323,6 @@ public class Sync extends Task { _copy.addFileset(set); } - /** - * Sets the character encoding - */ - public void setEncoding(String encoding) { - _copy.setEncoding(encoding); - } - - /** - * Sets the character encoding for output files. - */ - public void setOutputEncoding(String encoding) { - _copy.setOutputEncoding(encoding); - } - - /** * Subclass Copy in order to access it's file/dir maps. */