Browse Source

javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277394 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
512ab00dba
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      src/main/org/apache/tools/ant/taskdefs/Sync.java

+ 12
- 1
src/main/org/apache/tools/ant/taskdefs/Sync.java View File

@@ -306,7 +306,7 @@ public class Sync extends Task {
* are not present in any source directory.
*
* <p>You must not invoke this method more than once.</p>
*
* @param s a deletefromtarget nested element
* @since Ant 1.7
*/
public void addDeleteFromTarget(SyncTarget s) {
@@ -374,11 +374,22 @@ public class Sync extends Task {
*/
public static class SyncTarget extends AbstractFileSet {

/**
* Constructor for SyncTarget.
* This just changes the default value of "defaultexcludes" from
* true to false.
*/
public SyncTarget() {
super();
setDefaultexcludes(false);
}

/**
* Override AbstractFileSet#setDir(File) to disallow
* setting the directory. This is now set by #setTargetDir(File).
* @param dir ignored
* @throws BuildException always
*/
public void setDir(File dir) throws BuildException {
throw new BuildException("synctarget doesn't support the dir "
+ "attribute");


Loading…
Cancel
Save