From 512ab00dba9672670c26664d8b73cda4ac193830 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Thu, 20 Jan 2005 14:30:07 +0000 Subject: [PATCH] javadoc git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277394 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Sync.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Sync.java b/src/main/org/apache/tools/ant/taskdefs/Sync.java index f3ecf01b1..a9cc65ca3 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Sync.java +++ b/src/main/org/apache/tools/ant/taskdefs/Sync.java @@ -306,7 +306,7 @@ public class Sync extends Task { * are not present in any source directory. * *

You must not invoke this method more than once.

- * + * @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");